Skip to content

Commit fa59d6b

Browse files
ci: skip sloth when the PR author is the release-please bot (#312)
1 parent 0058d1c commit fa59d6b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/release-please.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
release-please:
17-
name: Release
17+
name: Create new release PR
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4

.github/workflows/sloth.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ jobs:
1212
sloth:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Sloth
15+
- name: Skip for release-please
16+
id: check_release_please
17+
if: github.event.pull_request.user.id == 41898282 # release-please[bot]
18+
run: |
19+
echo "Skipping Sloth check for release-please PR"
20+
exit 0
21+
22+
- name: Run Sloth
23+
if: ${{ always() && steps.check_release_please.outcome == 'skipped' }}
1624
uses: lendable/sloth@e1fd9a2df2549f6e64188f274bc5d3b39d7842ed # 0.2.0
1725
with:
1826
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)