Skip to content

Commit 2d58655

Browse files
Refactor Github Action per b/485167538
1 parent a05d0b2 commit 2d58655

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/batch_release_pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ jobs:
2424
run: |
2525
git config --global user.name ${{ secrets.USER_NAME }}
2626
git config --global user.email ${{ secrets.USER_EMAIL }}
27-
dart ./script/tool/lib/src/main.dart branch-for-batch-release --packages=${{ github.event.client_payload.package }} --branch=${{ env.BRANCH_NAME }} --remote=origin
27+
dart ./script/tool/lib/src/main.dart branch-for-batch-release --packages=${GITHUB_EVENT_CLIENT_PAYLOAD_PACKAGE} --branch=${BRANCH_NAME} --remote=origin
28+
env:
29+
GITHUB_EVENT_CLIENT_PAYLOAD_PACKAGE: ${{ github.event.client_payload.package }}
2830
- name: Check if branch was created
2931
id: check-branch-exists
3032
run: |
31-
if git show-ref --verify --quiet refs/heads/${{ env.BRANCH_NAME }}; then
33+
if git show-ref --verify --quiet refs/heads/${BRANCH_NAME}; then
3234
echo "exists=true" >> $GITHUB_OUTPUT
3335
else
3436
echo "exists=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)