Skip to content

Commit

Permalink
Überarbeitung AutoMerge für Dependabot PRs (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbennke authored Oct 23, 2023
1 parent c4c27cd commit 8a4ec27
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ permissions:
pull-requests: write

jobs:
dependabot:
jslint:
uses: ./.github/workflows/lint-js.yml
erblint:
uses: ./.github/workflows/lint-erb.yml
stylelint:
uses: ./.github/workflows/lint-css.yml
rubocop:
uses: ./.github/workflows/rubocop.yml
test:
uses: ./.github/workflows/test.yml
dependabot-automerge:
runs-on: ubuntu-latest
needs:
- brakeman-scan
- coffeelint
- jslint
- erblint
- eslint
- rubocop
- stylelint
- rubocop
- test
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint-css.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Stylesheets

on: [push]
on:
- push
- workflow_call

jobs:
stylelint:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint-erb.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: ERB Templates

on: [push]
on:
- push
- workflow_call

jobs:
erblint:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Javascripts

on: [push]
on:
- push
- workflow_call

jobs:
eslint:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: RuboCop

on: [push]
on:
- push
- workflow_call

jobs:
rubocop:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Rails Tests

on: [push]
on:
- push
- workflow_call

jobs:
test:
Expand Down

0 comments on commit 8a4ec27

Please sign in to comment.