fail job if nothing changed
Some checks failed
Reload Act Runner Stack to clear cache for workflows / deploy-gitainer (push) Failing after 4s
Some checks failed
Reload Act Runner Stack to clear cache for workflows / deploy-gitainer (push) Failing after 4s
This commit is contained in:
parent
567d159ae3
commit
90ef687663
@ -23,9 +23,6 @@ jobs:
|
|||||||
is_changed: ${{ steps.changed-files-specific.outputs.any_changed }}
|
is_changed: ${{ steps.changed-files-specific.outputs.any_changed }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Echo test
|
|
||||||
run: echo "${{ inputs.files }}"
|
|
||||||
|
|
||||||
- name: Checkout Code to Build
|
- name: Checkout Code to Build
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -39,6 +36,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: ${{ inputs.files }}
|
files: ${{ inputs.files }}
|
||||||
|
|
||||||
- name: Run step if any file(s) in the docs folder change
|
- name: Fail the job if nothing is changed
|
||||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
||||||
run: echo "files changed"
|
run: |
|
||||||
|
echo "nothing changed"
|
||||||
|
exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user