Skip to content

Commit

Permalink
feat(GH-8): Update push branch name to be ${{ github.head_ref }}
Browse files Browse the repository at this point in the history
  • Loading branch information
gavanlamb committed Jun 15, 2024
1 parent 6eaa195 commit e21e938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ jobs:
- name: Package
run: npm run package

# Check to see if there are changes in the dist/ folder
# if there are then fail the pipeline because it should not be the case
# the developer should have run the package command before pushing

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
branch: ${{ github.head_ref }}
tags: false

0 comments on commit e21e938

Please sign in to comment.