We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a06c2a commit cf42f28Copy full SHA for cf42f28
.github/workflows/node.js.yml
@@ -50,13 +50,8 @@ jobs:
50
51
- name: Determine current and target branches
52
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
58
- echo "TARGET_BRANCH=master" >> $GITHUB_ENV # Default target branch
59
- fi
+ echo "CURRENT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
+ echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
60
- name: Get the diff
61
run: git diff --name-only origin/$TARGET_BRANCH forkUpstream/$CURRENT_BRANCH > diff_output.txt
62
0 commit comments