Skip to content

Commit 72eeec6

Browse files
authored
Update Build Web workflow to only run on published Web releases. Removed migrated Staged Rollout Desktop workflow. (#20761)
1 parent 06da95f commit 72eeec6

2 files changed

Lines changed: 23 additions & 96 deletions

File tree

.github/workflows/build-web.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,31 @@ permissions:
5656
contents: read
5757

5858
jobs:
59+
check-release-tag:
60+
name: Check release tag
61+
if: github.event_name == 'release'
62+
runs-on: ubuntu-24.04
63+
steps:
64+
- name: Check tag
65+
env:
66+
TAG_NAME: ${{ github.event.release.tag_name }}
67+
run: |
68+
if [[ "$TAG_NAME" == web-v* ]]; then
69+
echo "### ✅ Web release detected" >> "$GITHUB_STEP_SUMMARY"
70+
echo "Tag \`$TAG_NAME\` matches \`web-v*\`. Proceeding with build." >> "$GITHUB_STEP_SUMMARY"
71+
else
72+
echo "### ⏭️ Build skipped" >> "$GITHUB_STEP_SUMMARY"
73+
echo "Tag \`$TAG_NAME\` does not match \`web-v*\`. This release is not for Web, skipping." >> "$GITHUB_STEP_SUMMARY"
74+
fi
75+
5976
setup:
6077
name: Setup
78+
needs: check-release-tag
79+
if: |
80+
always()
81+
&& (needs.check-release-tag.result == 'skipped'
82+
|| (needs.check-release-tag.result == 'success'
83+
&& startsWith(github.event.release.tag_name, 'web-v')))
6184
runs-on: ubuntu-24.04
6285
outputs:
6386
version: ${{ steps.version.outputs.value }}

.github/workflows/staged-rollout-desktop.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)