-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.13 KB
/
dispatch-bd-fe--cms.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 📡 CMS Publish
on:
workflow_dispatch:
jobs:
approve:
runs-on: ubuntu-latest
permissions:
issues: write
concurrency:
group: cms-publish
cancel-in-progress: true
steps:
- name: ✓ Approve CMS Dispatch
uses: dgrebb/[email protected]
with:
secret: ${{ github.TOKEN }}
approvers: dgrebb
minimum-approvals: 1
issue-title: "Deploying ${{ github.ref_name }} via CMS Dispatch Event"
issue-body: "Please approve or deny the deployment of version ${{ github.ref_name }}."
exclude-workflow-initiator-as-approver: false
additional-approved-words: y,a
labels: 'publish'
frontend:
runs-on: ubuntu-latest
steps:
- name: 🛰️ Dispatch B&D FE
run: |
curl --location 'https://api.github.com/repos/dgrebb/dgrebb.com/actions/workflows/bd-fe.yml/dispatches' \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.github+json' \
-H 'Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}' \
--data '{"ref": "${{ github.ref_name }}"}'