generated from dailydevops/dotnet-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(template): sync with dailydevops/dotnet-template
- Loading branch information
Showing
2 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,16 @@ name: Auto Merge Minor Upgrades | |
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
|
||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/[email protected] | ||
- name: Dependabot Auto Merge | ||
uses: ahmadnassri/[email protected] | ||
with: | ||
target: minor | ||
github-token: ${{ secrets.DEPENDABOT }} | ||
|
||
- name: Approve Minor PR | ||
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: | | ||
gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.DEPENDABOT }} | ||
|
||
- name: Enable auto-merge for Dependabot Pull Request | ||
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: gh pr merge --auto --squash "$PR_URL" --subject "$PR_MESSAGE [skip ci]" | ||
env: | ||
PR_MESSAGE: ${{ github.event.pull_request.title }} | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.DEPENDABOT }} | ||
command: squash and merge |