Skip to content

Commit 629491b

Browse files
committed
test deletion of file
1 parent 1964c6e commit 629491b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/Release.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,17 @@ jobs:
9191
path: out/
9292
key: awesome-ci-${{ github.sha }}
9393

94-
- name: list generated artifacts
94+
- name: get generated artifacts
9595
working-directory: out
9696
run: ls -la
9797

98+
- name: Check available assets
99+
if: hashFiles('out/awesome-ci_${{ needs.generate_infos.outputs.version }}_arm64') != '' || hashFiles('out/awesome-ci_${{ needs.generate_infos.outputs.version }}_amd64') != ''
100+
uses: actions/github-script@v3
101+
with:
102+
script: |
103+
core.setFailed('Not all files provided')
104+
98105
- name: Publish Release
99106
run: awesome-ci release publish -releaseid "$ACI_RELEASE_ID" -assets "file=out/$ARTIFACT1,file=out/$ARTIFACT2"
100107
env:

0 commit comments

Comments
 (0)