Skip to content

Commit 95e0cc1

Browse files
amielczaigcbot
authored andcommitted
Refactor workflow logic
Refactors github workflows
1 parent 92d23bc commit 95e0cc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/on-pr-update.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
echo "os_branch=${{ github.event.branches[0].name }}" >> $GITHUB_ENV
2222
- name: Get branch name if pr review state changed
2323
if: github.event_name == 'pull_request_review'
24+
env:
25+
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
2426
run: >
25-
echo "os_branch=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
27+
echo "os_branch=$PR_HEAD_REF" >> $GITHUB_ENV
2628
- name: Notify
2729
run: ${{ secrets.NOTIFY }}

0 commit comments

Comments
 (0)