Skip to content

Commit

Permalink
ci: Updated usage of Dependamerge
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Dec 29, 2023
1 parent 0adcde5 commit b7cc5c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cicd-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ jobs:
solution-version: ${{ needs.version.outputs.solution-version }}
secrets: inherit

dependabot-merge:
name: Dependabot Merge
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
uses: ./.github/workflows/step-dependabot-merge.yml
needs:
- tests
secrets: inherit

build:
name: Build
uses: ./.github/workflows/step-dotnet-build.yml
Expand All @@ -125,6 +117,14 @@ jobs:
solution: ${{ inputs.solution }}
secrets: inherit

dependabot-merge:
name: Dependabot Merge
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
uses: ./.github/workflows/step-dependabot-merge.yml
needs:
- build
secrets: inherit

publish-nuget:
name: Publish NuGet
if: ${{ inputs.disablePublish == false && github.actor != 'dependabot[bot]' }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dependabot-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:

steps:
- name: Dependabot Auto Merge
uses: ahmadnassri/[email protected]
uses: dailydevops/dependamerge-action@main
with:
target: minor
github-token: ${{ secrets.DEPENDABOT }}
command: squash and merge
token: ${{ secrets.DEPENDABOT }}
command: squash
handle-submodule: true
target: minor
1 change: 1 addition & 0 deletions .github/workflows/step-dependabot-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
token: ${{ secrets.DEPENDABOT }}
command: squash
handle-submodule: true
target: minor

0 comments on commit b7cc5c6

Please sign in to comment.