Skip to content

Commit 9d14c8f

Browse files
Ensure workflow only triggers for vNext -> main PRs
1 parent 65aadca commit 9d14c8f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/official-build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ on:
55
branches:
66
- main
77

8-
paths:
9-
- 'release/vNext'
10-
118
permissions:
129
contents: read
1310

1411
jobs:
1512
build:
13+
if: github.base_ref == 'main' && github.head_ref == 'release/vNext'
1614
runs-on: ubuntu-latest
1715

1816
permissions:
@@ -48,7 +46,7 @@ jobs:
4846
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
4947
git pull origin ${{ steps.extract_branch.outputs.branch }}
5048
git add .
51-
git commit -m 'Compile TypeScript to JavaScript'
49+
git commit -m 'Official Build: Compile TypeScript to JavaScript'
5250
git push origin HEAD:${{ steps.extract_branch.outputs.branch }}
5351
env:
5452
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)