Skip to content

Commit 2afdbcd

Browse files
authored
ci: gate versioned releases behind the release environment (#58885)
1 parent 0b7f4c4 commit 2afdbcd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ run-name: "${{ format('release {0}', inputs.bump) }}"
44
on:
55
push:
66
branches:
7-
- ci
87
- dev
98
- beta
10-
- fix/npm-native-binary-install
11-
- snapshot-*
129
workflow_dispatch:
1310
inputs:
1411
bump:
@@ -42,6 +39,8 @@ jobs:
4239
version:
4340
runs-on: blacksmith-4vcpu-ubuntu-2404
4441
if: github.repository == 'anomalyco/opencode'
42+
# Versioned releases wait for approval in the release environment, which only allows dev.
43+
environment: ${{ (inputs.bump || inputs.version) && 'release' || '' }}
4544
steps:
4645
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4746
with:

0 commit comments

Comments
 (0)