Skip to content

Commit 01903fa

Browse files
ci: don't run Sloth when release-please is the PR author (#320)
1 parent 0b4db8a commit 01903fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sloth.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
id: check_release_please
1717
if: github.event.pull_request.user.id == 41898282 # release-please[bot]
1818
run: |
19+
echo "skip=true" >> $GITHUB_OUTPUT
1920
echo "Skipping Sloth check for release-please PR"
20-
exit 0
2121
2222
- name: Run Sloth
23-
if: ${{ always() && steps.check_release_please.outcome == 'skipped' }}
23+
if: ${{ !steps.check_release_please.outputs.skip }}
2424
uses: lendable/sloth@e1fd9a2df2549f6e64188f274bc5d3b39d7842ed # 0.2.0
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)