Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/release-cloud-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,23 @@ concurrency:
cancel-in-progress: false

jobs:
# The image tags below are only enabled for `v*` tag refs. Fail fast with a
# clear error when dispatched from a branch rather than letting buildx fail
# with "tag is needed when pushing to registry".
validate-ref:
runs-on: ubuntu-latest
steps:
- name: Require a release tag ref
env:
REF: ${{ github.ref }}
run: |
if [[ "$REF" != refs/tags/v* ]]; then
Comment thread
brendan-kellam marked this conversation as resolved.
echo "::error::Cloud production releases must run against a release tag (got '$REF'). Re-run with: gh workflow run release-cloud-prod.yml --ref v<version>"
exit 1
fi

build:
needs: validate-ref
uses: ./.github/workflows/_build-cloud.yml
with:
environment: prod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
- name: Commit changes
run: |
git add CHANGELOG.md packages/shared/src/version.ts docs/api-reference/sourcebot-public.openapi.json
git commit -m "[skip ci] Release v$VERSION"
git commit -m "Release v$VERSION"

- name: Push to temporary branch
id: push_temp_branch
Expand Down
Loading