Skip to content

Commit

Permalink
GitHub CI Pipeline update for debugging forked PR support (#3056)
Browse files Browse the repository at this point in the history
# 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 <[email protected]>
  • Loading branch information
1 parent d95630a commit 5e867df
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pw_aws_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5e867df

Please sign in to comment.