-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.06 KB
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: example
on:
push:
# NO paths filter
pull_request:
# NO paths filter
workflow_dispatch:
jobs:
missing-final-newline:
runs-on: ubuntu-latest
outputs:
missing: ${{ steps.missing-final-newline.outputs.missing }}
missing-files: ${{ steps.missing-final-newline.outputs.missing-files }}
steps:
- uses: hakadoriya/github-actions-missing-final-newline@develop
id: missing-final-newline
with:
paths: |-
^action.yml
# > Note: A job that is skipped will report its status as "Success".
# > It will not prevent a pull request from merging, even if it is a required check.
# ref. https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution#overview
missing:
runs-on: ubuntu-latest
needs: missing-final-newline
if: ${{ needs.missing-final-newline.outputs.missing == 'true' }}
steps:
- name: "if not skip"
run: |
echo "needs.missing-final-newline.outputs.missing-files: ${{ needs.missing-final-newline.outputs.missing-files }}"