Skip to content

Commit 36ec213

Browse files
committed
Avoid showing full paths.
1 parent f503eea commit 36ec213

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/reusable-compare-build-script-results-v1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ jobs:
7575
run: mkdir artifacts
7676

7777
- name: Create a list of files that have changed
78-
run: diff -rq ${{ github.workspace }}/build ${{ github.workspace }}/built-wordpress > artifacts/file-changes.txt || true
78+
run: diff -rq ${{ github.workspace }}/build ${{ github.workspace }}/built-wordpress | sed "s|${{ github.workspace }}/||g" > artifacts/file-changes.txt
7979

8080
- name: Create a list of files that have changed
81-
run: diff -r ${{ github.workspace }}/build ${{ github.workspace }}/built-wordpress > artifacts/diff.patch || true
81+
run: diff -r ${{ github.workspace }}/build ${{ github.workspace }}/built-wordpress | sed "s|${{ github.workspace }}/||g" > artifacts/changes.diff
8282

8383
- name: Save PR number
8484
run: echo "${EVENT_NUMBER}" > ./artifacts/NR

0 commit comments

Comments
 (0)