Skip to content

Commit 69bdff3

Browse files
committed
Add guard to ensure release automation is enabled in workflows
1 parent 759b969 commit 69bdff3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/integration/release-fix.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27+
- name: "Guard: ensure release automation enabled"
28+
run: |
29+
if [ "${{ secrets.ENABLE_RELEASE_AUTOMATION }}" != "true" ]; then
30+
echo "Release automation is disabled for this repository. Set secret ENABLE_RELEASE_AUTOMATION=true to enable.";
31+
exit 1;
32+
fi
2733
- name: Compute target release version
2834
id: compute_version
2935
run: |

.github/workflows/integration/release-integration.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25+
- name: "Guard: ensure release automation enabled"
26+
run: |
27+
if [ "${{ secrets.ENABLE_RELEASE_AUTOMATION }}" != "true" ]; then
28+
echo "Release automation is disabled for this repository. Set secret ENABLE_RELEASE_AUTOMATION=true to enable.";
29+
exit 1;
30+
fi
2531
- name: Create Pull Request
2632
uses: peter-evans/create-pull-request@v8
2733
with:

0 commit comments

Comments
 (0)