Skip to content

Commit bd1e7bf

Browse files
dkirov-ddclaude
andauthored
ci(release): gate release-trigger on the release environment (#3003)
* ci(release): gate release-trigger on the release environment Add environment: release to the dispatch job that calls the reusable release-dispatch.yml workflow. GitHub's deployment protection runs before any of the reusable workflow's jobs start, so the prepare step (which creates tags) requires manual approval. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * ci(release): gate release-trigger via intermediate approve job environment: release cannot be used on a job that calls a reusable workflow (uses:). Instead, add an explicit approve job that holds the environment gate; the dispatch job depends on it, so the reusable workflow's prepare step (which creates tags) cannot run until a reviewer approves the deployment. Remove the previously-added environment: release from the dispatch job (invalid) and the inner environment: release from release-dispatch.yml (redundant — a single gate is sufficient). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 08e07c4 commit bd1e7bf

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release-trigger.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,17 @@ jobs:
4848
echo "is-stable-release=false" >> "$GITHUB_OUTPUT"
4949
fi
5050
51+
approve:
52+
name: Await release approval
53+
needs: context
54+
runs-on: ubuntu-latest
55+
environment: release
56+
steps:
57+
- run: echo "Release approved"
58+
5159
dispatch:
5260
name: Release
53-
needs: context
61+
needs: [context, approve]
5462
uses: DataDog/integrations-core/.github/workflows/release-dispatch.yml@master
5563
with:
5664
source-repo: integrations-extras

0 commit comments

Comments
 (0)