fix preview deployment
This commit is contained in:
parent
c0c26b7729
commit
af747a380f
1 changed files with 8 additions and 5 deletions
|
@ -1,12 +1,15 @@
|
||||||
name: preview deployment
|
name: Preview Deployment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["docker image"]
|
workflows: ["Development Image"]
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deployment:
|
deployment:
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
@ -20,7 +23,7 @@ jobs:
|
||||||
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||||
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||||
color: "#6848a9"
|
color: "#6848a9"
|
||||||
message: "Deployment started."
|
message: Deployment ${{ github.ref_name }} started
|
||||||
- name: ssh
|
- name: ssh
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
|
@ -35,4 +38,4 @@ jobs:
|
||||||
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
||||||
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
||||||
color: "#6848a9"
|
color: "#6848a9"
|
||||||
message: "Deployment complete."
|
message: Deployment ${{ github.ref_name }} complete
|
Loading…
Add table
Reference in a new issue