Skip to content

Commit 8e4a93f

Browse files
updated bug for pass repo output arguments to checkout in CI GitHub pipeline for pw
1 parent d95630a commit 8e4a93f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/pw_aws_ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ jobs:
8080
branch=$(gh pr view $pr_number --repo $repo --json headRefName --jq '.headRefName')
8181
repo_url=$(gh pr view $pr_number --repo $repo --json headRepository --jq '.headRepository.url')
8282
fi
83-
echo "::set-output name=branch::$branch"
84-
echo "::set-output name=repo::$repo_url"
83+
{
84+
echo "BRANCH=$branch"
85+
echo "REPO=$repo_url"
86+
} >> $GITHUB_OUTPUT
8587
8688
checkout:
8789
needs: fetch-branch
@@ -97,8 +99,8 @@ jobs:
9799
with:
98100
path: ${{ github.run_id }}/HOMEgfs
99101
submodules: 'recursive'
100-
repository: ${{ needs.fetch-branch.outputs.repo }}
101-
ref: ${{ needs.fetch-branch.outputs.branch }}
102+
repository: ${{ steps.git-branch.outputs.BRANCH }}
103+
ref: ${{ steps.git-branch.outputs.REPO }}
102104

103105
build-link:
104106
needs: checkout

0 commit comments

Comments
 (0)