Skip to content

feat: Create action.yml #6

feat: Create action.yml

feat: Create action.yml #6

Workflow file for this run

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 }}"