From 5e867df8aaffb95f7895fa741db33e9d12c6a4dc Mon Sep 17 00:00:00 2001 From: TerrenceMcGuinness-NOAA Date: Fri, 1 Nov 2024 18:05:43 +0000 Subject: [PATCH] GitHub CI Pipeline update for debugging forked PR support (#3056) # Description Updating GitHub CI pipeline's bug with passing repo variables for `actions/checkout@v4` to support forked PRs. Had to debug directly from develop in authoritative repo because did not not have fork of fork for the development tests. # Type of change - [x] Bug fix (fixes something broken) - [ ] New feature (adds functionality) - [ ] Maintenance (code refactor, clean-up, new CI test, etc.) --------- Co-authored-by: Terry McGuinness --- .github/workflows/pw_aws_ci.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pw_aws_ci.yaml b/.github/workflows/pw_aws_ci.yaml index c59f027920..f97825c5bc 100644 --- a/.github/workflows/pw_aws_ci.yaml +++ b/.github/workflows/pw_aws_ci.yaml @@ -80,8 +80,10 @@ jobs: branch=$(gh pr view $pr_number --repo $repo --json headRefName --jq '.headRefName') repo_url=$(gh pr view $pr_number --repo $repo --json headRepository --jq '.headRepository.url') fi - echo "::set-output name=branch::$branch" - echo "::set-output name=repo::$repo_url" + { + echo "BRANCH=$branch" + echo "REPO=$repo_url" + } >> $GITHUB_OUTPUT checkout: needs: fetch-branch @@ -97,8 +99,8 @@ jobs: with: path: ${{ github.run_id }}/HOMEgfs submodules: 'recursive' - repository: ${{ needs.fetch-branch.outputs.repo }} - ref: ${{ needs.fetch-branch.outputs.branch }} + repository: ${{ steps.git-branch.outputs.BRANCH }} + ref: ${{ steps.git-branch.outputs.REPO }} build-link: needs: checkout