Skip to content

Commit

Permalink
Ensure workflow only triggers for vNext -> main PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnielsen-MS committed Jul 30, 2024
1 parent 65aadca commit 9d14c8f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ on:
branches:
- main

paths:
- 'release/vNext'

permissions:
contents: read

jobs:
build:
if: github.base_ref == 'main' && github.head_ref == 'release/vNext'
runs-on: ubuntu-latest

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

0 comments on commit 9d14c8f

Please sign in to comment.