Skip to content

Commit

Permalink
Display caller workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Mar 13, 2024
1 parent b2c4f9e commit f53d9ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test-self.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ jobs:
git status -vv
git commit -m "Test $WORKFLOW_SHORT_LINK" -m "Test $WORKFLOW_FULL_LINK"
git push -f
echo "CALLER_SHA=$(git log -n 1 --format='%H')" >> $GITHUB_ENV
- name: Display caller workflow runs for this commit
env:
GH_TOKEN: ${{ secrets.CLIENT_REPO_TOKEN }}
run: |
gh run list \
--repo ${{ matrix.caller-repository }} \
--commit ${{ env.CALLER_SHA }} \
--json url,displayTitle,status \
--template '- {{range .}}[{{.displayTitle}}]({{.url}}) ({{.status}}){{end}}' \
>> $GITHUB_STEP_SUMMARY

0 comments on commit f53d9ff

Please sign in to comment.