build(dev): update all github workflows with new default branch name

This commit is contained in:
Jacob Overgaard
2025-05-05 15:26:51 +02:00
parent 6f4a8a2041
commit 44552ccf75
4 changed files with 18 additions and 12 deletions

View File

@@ -3,8 +3,9 @@ name: Backoffice Static Web Apps CI/CD
on: on:
push: push:
branches: branches:
- contrib - main
- v*/dev - v*/dev
- v*/main
paths: paths:
- src/Umbraco.Web.UI.Client/package.json - src/Umbraco.Web.UI.Client/package.json
- src/Umbraco.Web.UI.Client/package-lock.json - src/Umbraco.Web.UI.Client/package-lock.json
@@ -13,8 +14,9 @@ on:
pull_request: pull_request:
types: [opened, synchronize, reopened, closed] types: [opened, synchronize, reopened, closed]
branches: branches:
- contrib - main
- v*/dev - v*/dev
- v*/main
jobs: jobs:
build_and_deploy_job: build_and_deploy_job:
@@ -29,7 +31,7 @@ jobs:
id: builddeploy id: builddeploy
uses: Azure/static-web-apps-deploy@v1 uses: Azure/static-web-apps-deploy@v1
with: with:
production_branch: contrib production_branch: main
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_GROUND_017B08103 }} azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_GROUND_017B08103 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload" action: "upload"

View File

@@ -3,8 +3,9 @@ name: Storybook CI/CD
on: on:
push: push:
branches: branches:
- contrib - main
- v*/dev - v*/dev
- v*/main
paths: paths:
- src/Umbraco.Web.UI.Client/package.json - src/Umbraco.Web.UI.Client/package.json
- src/Umbraco.Web.UI.Client/package-lock.json - src/Umbraco.Web.UI.Client/package-lock.json
@@ -13,8 +14,9 @@ on:
pull_request: pull_request:
types: [opened, synchronize, reopened, closed] types: [opened, synchronize, reopened, closed]
branches: branches:
- contrib - main
- v*/dev - v*/dev
- v*/main
env: env:
NODE_OPTIONS: --max_old_space_size=16384 NODE_OPTIONS: --max_old_space_size=16384
@@ -30,7 +32,7 @@ jobs:
id: builddeploy id: builddeploy
uses: Azure/static-web-apps-deploy@v1 uses: Azure/static-web-apps-deploy@v1
with: with:
production_branch: contrib production_branch: main
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_SEA_0C7411A03 }} azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_SEA_0C7411A03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload" action: "upload"

View File

@@ -4,15 +4,15 @@ on:
push: push:
branches: branches:
- "*/dev" - "*/dev"
- "*/contrib" - "*/main"
- "contrib" - "main"
- "release/*" - "release/*"
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: branches:
- "*/dev" - "*/dev"
- "*/contrib" - "*/main"
- "contrib" - "main"
- "release/*" - "release/*"
schedule: schedule:
- cron: "33 2 * * 1" - cron: "33 2 * * 1"

View File

@@ -3,16 +3,18 @@ name: Test Backoffice
on: on:
push: push:
branches: branches:
- contrib - main
- release/* - release/*
- v*/dev - v*/dev
- v*/main
paths: paths:
- src/Umbraco.Web.UI.Client/** - src/Umbraco.Web.UI.Client/**
pull_request: pull_request:
branches: branches:
- contrib - main
- release/* - release/*
- v*/dev - v*/dev
- v*/main
paths: paths:
- src/Umbraco.Web.UI.Client/** - src/Umbraco.Web.UI.Client/**