Skip to content

Commit

Permalink
fix preview deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Her Email authored and alphatownsman committed Nov 30, 2023
1 parent c0c26b7 commit af747a3
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: preview deployment
name: Preview Deployment

on:
workflow_run:
workflows: ["docker image"]
workflows: ["Development Image"]
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
deployment:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
Expand All @@ -20,7 +23,7 @@ jobs:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#6848a9"
message: "Deployment started."
message: Deployment ${{ github.ref_name }} started
- name: ssh
uses: appleboy/ssh-action@master
with:
Expand All @@ -35,4 +38,4 @@ jobs:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#6848a9"
message: "Deployment complete."
message: Deployment ${{ github.ref_name }} complete

0 comments on commit af747a3

Please sign in to comment.