26 lines
726 B
YAML
26 lines
726 B
YAML
name: "Deploy on Comment"
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: x86_64
|
|
container:
|
|
image: alpine:latest
|
|
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
|
|
steps:
|
|
- run: apk add nodejs curl
|
|
- 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:
|
|
commit: ${{ steps.comment-branch.outputs.head_sha }}
|
|
- name: Deploy
|
|
run: |
|
|
echo "Deploying..."
|
|
ls -R
|