Skip to content

Commit 2f0bdbb

Browse files
committed
add names to tasks
1 parent b1b6f17 commit 2f0bdbb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/copyPasteDetection.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
4343
4444
- name: Determine base and target branches for comparison
45-
if: e${{ env.IS_LOCAL == 'true' }}
45+
if: ${{ env.IS_LOCAL == 'true' }}
4646
run: |
4747
echo "CURRENT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
4848
echo "TARGET_BRANCH=master" >> $GITHUB_ENV
@@ -51,11 +51,12 @@ jobs:
5151
run: |
5252
echo "CURRENT_BRANCH=$CURRENT_BRANCH"
5353
echo "TARGET_BRANCH=$TARGET_BRANCH"
54-
55-
- if: ${{ env.IS_LOCAL == 'false' }}
54+
- name: Compare target and current branches.
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 == 'true' }}
58+
- name: Compare target and current branches.
59+
if: ${{ env.IS_LOCAL == 'true' }}
5960
run: git diff origin/$TARGET_BRANCH $CURRENT_BRANCH > diff_output.txt
6061

6162
- run: npm install -g jscpd

0 commit comments

Comments
 (0)