Skip to content

Commit cf42f28

Browse files
committed
remove non-pr case
1 parent 5a06c2a commit cf42f28

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ jobs:
5050
5151
- name: Determine current and target branches
5252
run: |
53-
if [ "${{ github.event_name }}" == "pull_request" ]; then
54-
echo "CURRENT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
55-
echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
56-
else
57-
echo "CURRENT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
58-
echo "TARGET_BRANCH=master" >> $GITHUB_ENV # Default target branch
59-
fi
53+
echo "CURRENT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
54+
echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
6055
- name: Get the diff
6156
run: git diff --name-only origin/$TARGET_BRANCH forkUpstream/$CURRENT_BRANCH > diff_output.txt
6257

0 commit comments

Comments
 (0)