ayaports/.forgejo/workflows/deploy.yaml

27 lines
726 B
YAML
Raw Normal View History

2024-08-11 22:38:28 +00:00
name: "Deploy on Comment"
on:
issue_comment:
types: [created]
jobs:
deploy:
2024-08-11 22:39:53 +00:00
runs-on: x86_64
container:
image: alpine:latest
2024-08-11 22:38:28 +00:00
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
steps:
2024-08-11 22:40:54 +00:00
- run: apk add nodejs curl
2024-08-11 22:52:41 +00:00
- 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
2024-08-11 22:38:28 +00:00
with:
2024-08-11 22:52:41 +00:00
commit: ${{ steps.comment-branch.outputs.head_sha }}
2024-08-11 22:38:28 +00:00
- name: Deploy
run: |
echo "Deploying..."
ls -R