Skip to content

Commit 4e6625c

Browse files
authored
ci: skip ci actions that require tokens for dependabot PRs (#195)
1 parent 581d1ce commit 4e6625c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959

6060
- name: Get Release Bot Token
6161
id: get-token
62-
if: ${{ inputs.release }}
62+
if: ${{ inputs.release && github.actor != 'dependabot[bot]' }}
6363
uses: getsentry/action-github-app-token@v1
6464
with:
6565
app_id: ${{ secrets.DS_RELEASE_BOT_ID }}
6666
private_key: ${{ secrets.DS_RELEASE_BOT_PRIVATE_KEY }}
6767

6868
- name: Maybe Release 🚀
69-
if: "${{ inputs.release }}"
69+
if: ${{ inputs.release && github.actor != 'dependabot[bot]' }}
7070
run: |
7171
npm run semantic-release
7272
env:

.github/workflows/conventional-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
lint-pr:
1313
runs-on: ubuntu-latest
14+
if: github.actor != 'dependabot[bot]'
1415
steps:
1516
- uses: actions/checkout@v4
1617

0 commit comments

Comments
 (0)