feat(initiate-deployment): add merge queue support #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deployments | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- 'src/helpers/delete-deployment.ts' | |
- 'src/helpers/initiate-deployment.ts' | |
- 'src/helpers/set-deployment-status.ts' | |
jobs: | |
initiate-deployment: | |
name: Initiate Deployment | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
helper: initiate-deployment | |
sha: ${{ github.event.pull_request.head.sha }} | |
environment: test | |
description: PR#${{ github.event.pull_request.number }} has been merged; pipeline in progress... | |
set-deployment-status: | |
name: Set Deployment Status | |
needs: [initiate-deployment] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
helper: set-deployment-status | |
sha: ${{ github.event.pull_request.head.sha }} | |
environment: test | |
state: success | |
description: Deployment succeeded. | |
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
delete-deployment: | |
name: Delete Deployment | |
needs: [initiate-deployment, set-deployment-status] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
helper: delete-deployment | |
sha: ${{ github.event.pull_request.head.sha }} | |
environment: test |