feat: Create action.yml #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |