We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc4bc7 commit 1229133Copy full SHA for 1229133
1 file changed
.github/workflows/restrict-trunk.yml
@@ -25,10 +25,21 @@ on:
25
type: boolean
26
27
jobs:
28
+ approve:
29
+ name: Approve Manual Trigger
30
+ runs-on: ubuntu-latest
31
+ if: github.event_name == 'workflow_dispatch' && github.event.repository.fork == false
32
+ environment: production
33
+ steps:
34
+ - run: echo "Manual trigger approved"
35
+
36
manage-trunk:
37
name: Manage Trunk Branch
38
+ needs: [approve]
39
runs-on: ubuntu-latest
40
if: |
41
+ always() &&
42
+ (needs.approve.result == 'success' || needs.approve.result == 'skipped') &&
43
github.event.repository.fork == false &&
44
(github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' ||
45
(startsWith(github.event.pull_request.head.ref, 'release-preparation-') &&
0 commit comments