Skip to content

Commit

Permalink
Update workflow pipeline (#3060)
Browse files Browse the repository at this point in the history
Change repo_url to repo owner/branch format for actions/checkout@v4
as part of in place pipeline development within.
  • Loading branch information
TerrenceMcGuinness-NOAA authored Nov 1, 2024
1 parent 5bde649 commit 75c3c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pw_aws_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ jobs:
repo=${{ github.repository }}
if [ "$pr_number" -eq "0" ]; then
branch=${{ github.event.inputs.ref }}
repo_url="https://github.com/${{ github.repository_owner }}/${{ github.repository }}.git"
repo="{{ github.repository_owner }}/${{ github.repository }}"
else
branch=$(gh pr view $pr_number --repo $repo --json headRefName --jq '.headRefName')
repo_owner=$(gh pr view $pr_number --repo $repo --json headRepositoryOwner --jq '.headRepositoryOwner.login')
repo_name=$(gh pr view $pr_number --repo $repo --json headRepository --jq '.headRepository.name')
repo_url="https://github.com/$repo_owner/$repo_name.git"
repo="$repo_owner/$repo_name"
fi
{
echo "branch=$branch"
Expand Down

0 comments on commit 75c3c67

Please sign in to comment.