Skip to content

Commit

Permalink
chore: fix ci for forked repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Almouro committed Dec 18, 2023
1 parent ac8b544 commit 92af192
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
# This actually doesn't work from a forked repo so ignoring for now
# with:
# ref: ${{ github.event.pull_request.head.ref }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -25,9 +26,10 @@ jobs:
run: yarn
- name: Run tests
run: yarn test
- name: Push yarn.lock update
run: |
git config --global user.email "[email protected]"
git config --global user.name "flashlight-bot"
git add yarn.lock && git diff --staged --quiet || git commit -m "chore: update yarn.lock"
git push
# This actually doesn't work from a forked repo so ignoring for now
# - name: Push yarn.lock update
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "flashlight-bot"
# git add yarn.lock && git diff --staged --quiet || git commit -m "chore: update yarn.lock"
# git push

0 comments on commit 92af192

Please sign in to comment.