@@ -30,19 +30,19 @@ jobs:
3030 run : echo "IS_LOCAL=false" >> $GITHUB_ENV
3131
3232 - name : Fetch fork upstream
33- if : env.IS_LOCAL == false
33+ if : ${{ env.IS_LOCAL == ' false' }}
3434 run : |
3535 git remote add forkUpstream https://github.com/${{ github.event.pull_request.head.repo.full_name }} # URL of the fork
3636 git fetch forkUpstream # Fetch fork
3737
3838 - name : Determine base and target branches for comparison.
39- if : env.IS_LOCAL == false
39+ if : ${{ env.IS_LOCAL == ' false' }}
4040 run : |
4141 echo "CURRENT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
4242 echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
4343
4444 - name : Determine base and target branches for comparison
45- if : env.IS_LOCAL
45+ if : e${{ env.IS_LOCAL == 'true' }}
4646 run : |
4747 echo "CURRENT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
4848 echo "TARGET_BRANCH=master" >> $GITHUB_ENV
@@ -52,17 +52,17 @@ jobs:
5252 echo "CURRENT_BRANCH=$CURRENT_BRANCH"
5353 echo "TARGET_BRANCH=$TARGET_BRANCH"
5454
55- - if : env.IS_LOCAL == false
55+ - if : ${{ env.IS_LOCAL == ' false' }}
5656 run : git diff origin/$TARGET_BRANCH forkUpstream/$CURRENT_BRANCH > diff_output.txt
5757
58- - if : env.IS_LOCAL
58+ - if : ${{ env.IS_LOCAL == 'true' }}
5959 run : git diff origin/$TARGET_BRANCH $CURRENT_BRANCH > diff_output.txt
6060
6161 - run : npm install -g jscpd
6262
6363 - run : jscpd --config "$GITHUB_WORKSPACE/.github/workflows/jscpd.json"
6464
65- - if : always() && env.IS_LOCAL == false
65+ - if : ${{ env.IS_LOCAL == ' false' }}
6666 uses : actions/upload-artifact@v4
6767 with :
6868 name : unfiltered-jscpd-report
0 commit comments