Skip to content

Commit

Permalink
chore(repo): add back workflow commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed Jul 10, 2023
1 parent a9b3105 commit a6108cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}

- name: Validate package.json
uses: ExpediaGroup/package-json-validator@v1
Expand Down Expand Up @@ -51,5 +55,10 @@ jobs:
if [[ $(git status --porcelain) ]]; then
echo "Detected uncommitted changes after build. Please run npm run package and commit the changes!"
git status
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add dist/
git commit -m "chore: committing generated dist" --no-verify
git push
exit 1
fi

0 comments on commit a6108cf

Please sign in to comment.