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 f68ff37
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/sample-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ 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
- if: ${{steps.check-artifact-exists.outputs.exists}}
name: print-artifact
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 f68ff37

Please sign in to comment.