Skip to content

Commit

Permalink
[SE-203] remove fixup, as lockfiles are now supported by dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-barz-brickmakers committed Sep 26, 2024
1 parent 8f8443e commit a36e1f5
Showing 1 changed file with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dependabot PR fixup
name: Dependabot PR automerge

on:
workflow_dispatch:
Expand All @@ -10,37 +10,8 @@ on:
- synchronize

jobs:
pr_fixup:
name: PR Fixup
if: github.event_name == 'workflow_dispatch' || github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
outputs:
commit_hash: ${{ steps.auto_commit.outputs.commit_hash }}
permissions:
contents: write
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
7.0.x
6.0.x
- name: Checkout PR
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Update lockfiles
run: dotnet restore --use-lock-file
- id: auto_commit
name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update lockfiles

ci:
name: Run CI-Pipeline
needs:
- pr_fixup
if: github.event_name == 'workflow_dispatch' || github.actor == 'dependabot[bot]'
uses: ./.github/workflows/ci.yml
with:
Expand All @@ -49,7 +20,6 @@ jobs:
pr_automerge:
name: Enable Automerge
needs:
- pr_fixup
- ci
if: github.event_name == 'workflow_dispatch' || github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
Expand Down

0 comments on commit a36e1f5

Please sign in to comment.