Skip to content

Commit e97f6fe

Browse files
committed
check artifact exists
1 parent 313f788 commit e97f6fe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/sample-action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: dowload-art
13+
- name: check-artifact-exists
14+
uses: LIT-Protocol/artifact-exists-action@v0
15+
with:
16+
name: master_sha
17+
- if: ${{steps.check-artifact-exists.outputs.exists}}
18+
name: dowload-art
1419
uses: actions/download-artifact@v4
1520
with:
1621
name: master_sha
1722
path: master_sha.txt
18-
19-
- name: print_artifact_sha
2023
run: |
2124
value=`cat master_sha.txt'
2225
echo "result: $value"
23-
26+
- if: ${{ ! steps.check-artifact-exists.outputs.exists }}
27+
run: echo "no artifact stored"

0 commit comments

Comments
 (0)