Skip to content

Commit c726679

Browse files
committed
chore: run if not dependabot or if the dependabot check passed and has been triggered by workflow_run
1 parent b9b6098 commit c726679

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/dependabot_pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### .github/workflows/dependabot_pr.yml
2+
### This workflow doesn't have access to secrets and has a read-only token
3+
name: Dependabot PR Check
4+
on:
5+
pull_request
6+
7+
jobs:
8+
check-dependabot:
9+
runs-on: ubuntu-latest
10+
if: ${{ github.actor == 'dependabot[bot]' }}
11+
steps:
12+
- run: echo "PR created by Dependabot"

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: test
22

33
on:
4-
pull_request_target:
5-
types:
6-
- opened
4+
workflow_run:
5+
workflows: ["Dependabot PR Check"]
6+
types:
7+
- completed
8+
pull_request:
79
branches:
810
- main
911

@@ -29,6 +31,7 @@ jobs:
2931

3032
build-linux:
3133
runs-on: ubuntu-latest
34+
if: ${{ github.actor != 'dependabot[bot]' || github.event.workflow_run.conclusion == 'success' }}
3235
env:
3336
# https://goreleaser.com/customization/docker_manifest/
3437
DOCKER_CLI_EXPERIMENTAL: "enabled"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy