Skip to content

Commit

Permalink
Revert "[SE-203] remove fixup, as lockfiles are now supported by depe…
Browse files Browse the repository at this point in the history
…ndabot"

This reverts commit a36e1f5.
  • Loading branch information
felix-barz-brickmakers committed Sep 26, 2024
1 parent c06b543 commit 8f4d167
Showing 1 changed file with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dependabot PR automerge
name: Dependabot PR fixup

on:
workflow_dispatch:
Expand All @@ -10,8 +10,37 @@ 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 @@ -20,6 +49,7 @@ 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 8f4d167

Please sign in to comment.