From 25519a0d32d13c89b1a04900199b71904d8c2c93 Mon Sep 17 00:00:00 2001 From: Julian Jandl Date: Mon, 11 Oct 2021 23:58:41 +0200 Subject: [PATCH 1/2] chore: setup ci for PRs from forks --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 0198761b87..2d34519965 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -62,7 +62,7 @@ jobs: name: Checkout [pr] if: github.ref != 'refs/heads/master' with: - ref: ${{ github.event.pull_request.head.ref }} + ref: $GITHUB_REF fetch-depth: 0 - name: Derive appropriate SHAs for base and head for `nx affected` commands From 191e40aec25434ae723637f328ef9600bb806954 Mon Sep 17 00:00:00 2001 From: Julian Jandl Date: Tue, 12 Oct 2021 00:05:02 +0200 Subject: [PATCH 2/2] chore: setup ci for PRs from forks --- .github/workflows/build-and-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2d34519965..f10080ac5d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -62,7 +62,8 @@ jobs: name: Checkout [pr] if: github.ref != 'refs/heads/master' with: - ref: $GITHUB_REF + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{github.event.pull_request.head.repo.full_name}} fetch-depth: 0 - name: Derive appropriate SHAs for base and head for `nx affected` commands