Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusing the same Dependabot triggering workflow #2863

Merged
Merged
Show file tree
Hide file tree
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
16 changes: 0 additions & 16 deletions .github/workflows/build-dependabot.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [main]
pull_request:
branches: [main, '[0-9]+-[0-9]+-*']
workflow_run:
workflows: ['Dependabot']
types:
- completed
workflow_dispatch:
workflow_call:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Test for Dependabot
name: Dependabot

on:
pull_request:
branches: [main, '[0-9]+-[0-9]+-*']
workflow_dispatch:

jobs:
dependabot-test:
name: Test for Dependabot
dependabot:
name: Dependabot
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') && github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ on:
branches: [main]
pull_request:
branches: [main, '[0-9]+-[0-9]+-*']
workflow_run:
workflows: ['Dependabot']
types:
- completed
workflow_dispatch:
workflow_call:
inputs:
ref:
description: 'Checkout a different git ref instead of the SHA from the GitHub event.'
required: false
type: string

jobs:
eslint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [main, '[0-9]+-[0-9]+-*']
workflow_run:
workflows: ['Test for Dependabot']
workflows: ['Dependabot']
types:
- completed
workflow_dispatch:
Expand Down
Loading