From 92af1920a673aa34a4614483ea9bec5095b87376 Mon Sep 17 00:00:00 2001 From: almouro Date: Mon, 18 Dec 2023 09:46:05 +0100 Subject: [PATCH] chore: fix ci for forked repo --- .github/workflows/tests.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17fe750d..d619d0a3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -25,9 +26,10 @@ jobs: run: yarn - name: Run tests run: yarn test - - name: Push yarn.lock update - run: | - git config --global user.email "bam.flashlight@gmail.com" - 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 "bam.flashlight@gmail.com" + # git config --global user.name "flashlight-bot" + # git add yarn.lock && git diff --staged --quiet || git commit -m "chore: update yarn.lock" + # git push