ci: update workflows after branch rename

This commit is contained in:
Elliot DeNolf
2024-11-17 12:13:19 -05:00
parent cb6ceaec76
commit a31c29b1ff
3 changed files with 7 additions and 8 deletions

View File

@@ -9,7 +9,6 @@ on:
push:
branches:
- main
- beta
concurrency:
# <workflow_name>-<branch_name>-<true || commit_sha if branch is protected>
@@ -530,7 +529,7 @@ jobs:
publish-canary:
name: Publish Canary
runs-on: ubuntu-latest
if: ${{ needs.all-green.result == 'success' && github.ref_name == 'beta' }}
if: ${{ needs.all-green.result == 'success' && github.ref_name == 'main' }}
needs:
- all-green
@@ -538,4 +537,4 @@ jobs:
# debug github.ref output
- run: |
echo github.ref: ${{ github.ref }}
echo isBeta: ${{ github.ref == 'refs/heads/beta' }}
echo isV3: ${{ github.ref == 'refs/heads/main' }}

View File

@@ -109,13 +109,13 @@ jobs:
runs-on: ubuntu-latest
if: github.event.action == 'opened'
steps:
- name: Tag with main branch with v2
if: github.event.pull_request.base.ref == 'main'
- name: Tag with 2.x branch with v2
if: github.event.pull_request.base.ref == '2.x'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: v2
- name: Tag with beta branch with v3
if: github.event.pull_request.base.ref == 'beta'
- name: Tag with main branch with v3
if: github.event.pull_request.base.ref == 'main'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: v3

View File

@@ -3,7 +3,7 @@ name: release-canary
on:
workflow_dispatch:
branches:
- beta
- main
env:
NODE_VERSION: 22.6.0