Skip to content

Cancel in progress deploy actions (#76) #55

Cancel in progress deploy actions (#76)

Cancel in progress deploy actions (#76) #55

---
name: 'deploy from main'
on:
push:
branches:
- main
# github.workflow = Workflow name
# github.event.pull_request.number = PR number
# github.ref = if trigger is a push, use the branch name instead
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: main
git_remote_url: ${{ secrets.GIT_REMOTE_URL }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy Notify
uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY }}