Skip to content

Commit 47d60a0

Browse files
committed
Adjust output of changed images on forked PRs
Signed-off-by: Appu Goundan <[email protected]>
1 parent 0b26035 commit 47d60a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/image-check.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
permissions:
1313
pull-requests: write
14-
14+
1515
jobs:
1616
diff:
1717
runs-on: distroless-ci-large-ubuntu-22.04
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Fetch
3434
run: |
35-
for i in $(seq 10); do
35+
for i in $(seq 10); do
3636
bazel --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc cquery 'attr(tags, "amd64", ...)' && break
3737
sleep 10;
3838
done
@@ -71,9 +71,11 @@ jobs:
7171
7272
- name: Write diff to job output for forks
7373
if: ${{ github.event.pull_request.head.repo.fork && steps.diff.outputs.changed_targets }}
74+
env:
75+
CHANGED: ${{ steps.diff.outputs.changed_targets }}
7476
run: |
7577
echo "This pull request has modified the following images:"
76-
echo ${{ steps.diff.outputs.changed_targets }}
78+
echo "$CHANGED"
7779
7880
- uses: peter-evans/find-comment@v4
7981
id: fc

0 commit comments

Comments
 (0)