Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/trl-ci-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ jobs:
- name: Ignore untrusted commenter
if: steps.trust.outputs.trusted != 'true'
run: |
echo "Untrusted commenter; ignoring."
echo "Untrusted commenter, stop the workflow!"
exit 0

- name: Fetch PR head SHA + number
if: steps.trust.outputs.trusted == 'true'
id: pr
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -48,6 +49,7 @@ jobs:
echo "number=$number" >> $GITHUB_OUTPUT

- name: Dispatch TRL workflow
if: steps.trust.outputs.trusted == 'true'
id: dispatch
env:
GH_TOKEN: ${{ secrets.TRL_CI_DISPATCH_TOKEN }}
Expand All @@ -57,6 +59,7 @@ jobs:
-f transformers_ref=${{ steps.pr.outputs.sha }}

- name: Find TRL workflow run URL
if: steps.trust.outputs.trusted == 'true'
id: find_run
env:
GH_TOKEN: ${{ secrets.TRL_CI_DISPATCH_TOKEN }}
Expand All @@ -82,6 +85,7 @@ jobs:
done

- name: Comment back on PR with link
if: steps.trust.outputs.trusted == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand Down
Loading