Skip to content

Commit

Permalink
update workflow 73
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd committed Apr 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a4e5010 commit 4b5a492
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/73-if-file-exists.yml
Original file line number Diff line number Diff line change
@@ -15,14 +15,24 @@ jobs:

# Step to run if file exists
- name: Run if file exists
if: ${{ success() && hashFiles('does-not-exist-fail.xml') != '' }}
if: ${{ !cancelled() && hashFiles('test.py') != '' }}
run: |
# Your command to run if the file exists
echo "File exists, running additional steps..."
- name: Force failure
run: exit 1

# Step to run if file does not exist
- name: File does not exist
if: ${{ success() && !hashFiles('does-not-exist-fail.xml') != ''}}
if: ${{ !cancelled() && !hashFiles('does-not-exist-fail.txt') != ''}}
run: |
# Your command to run if the file does not exist
echo "File does not exist, skipping additional steps..."
# Step to run if file does not exist
- name: File does not exist (Should never run)
if: ${{ !cancelled() && hashFiles('does-not-exist-fail.txt') != ''}}
run: |
# Your command to run if the file does not exist
echo "File does not exist, skipping additional steps..."

0 comments on commit 4b5a492

Please sign in to comment.