Skip to content

Commit

Permalink
check artifact exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Aug 15, 2024
1 parent 313f788 commit e97f6fe
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/sample-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: dowload-art
- name: check-artifact-exists
uses: LIT-Protocol/artifact-exists-action@v0
with:
name: master_sha
- if: ${{steps.check-artifact-exists.outputs.exists}}
name: dowload-art
uses: actions/download-artifact@v4
with:
name: master_sha
path: master_sha.txt

- name: print_artifact_sha
run: |
value=`cat master_sha.txt'
echo "result: $value"
- if: ${{ ! steps.check-artifact-exists.outputs.exists }}
run: echo "no artifact stored"

0 comments on commit e97f6fe

Please sign in to comment.