Skip to content

Commit e328f42

Browse files
committed
Simplify by showing more general link
1 parent 292b790 commit e328f42

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/test-self.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,7 @@ jobs:
6464
git commit -m "Test $WORKFLOW_SHORT_LINK" -m "Test $WORKFLOW_FULL_LINK"
6565
git push -f
6666
echo "CALLER_SHA=$(git log -n 1 --format='%H')" >> $GITHUB_ENV
67-
- name: Display caller workflow runs for this commit
68-
env:
69-
GH_TOKEN: ${{ secrets.CLIENT_REPO_TOKEN }}
67+
- name: Show link to access caller workflow runs
68+
if: strategy.job-index == '0'
7069
run: |
71-
gh run list \
72-
--repo ${{ matrix.caller-repository }} \
73-
--commit ${{ env.CALLER_SHA }} \
74-
--json url,displayTitle,status \
75-
--template '{{ range .}}{{ .url }}{{ end }}' \
76-
>> $GITHUB_STEP_SUMMARY
77-
70+
echo "URL for caller workflow run(s): <${{ github.server_url }}/${{ matrix.caller-repository }}/actions>" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)