use download workflow artifacts

This commit is contained in:
Antoine Martin 2024-08-11 18:52:41 -04:00
parent 411285d313
commit 0197cc05b8
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -12,9 +12,14 @@ jobs:
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
steps:
- run: apk add nodejs curl
- uses: forgejo/download-artifact@v4
- name: Get PR branch
uses: xt0rted/pull-request-comment-branch@v1
id: comment-branch
- run: echo ${{ steps.comment-branch.outputs.head_sha }}
- run: echo ${{ steps.comment-branch.outputs.head_ref }}
- uses: dawidd6/action-download-artifact@v6
with:
name: package
commit: ${{ steps.comment-branch.outputs.head_sha }}
- name: Deploy
run: |
echo "Deploying..."