Skip to content

Commit

Permalink
ci: Fix auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
34j committed Nov 4, 2022
1 parent 066050e commit 2dbda83
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
name: release
name: auto-merge

on:
push:
paths-ignore:
- 'doc/**'
- 'img/**'
- 'changelog.md'
- 'license.txt'
- 'readme.md'
pull_request:
on: pull_request_target
permissions:
pull-requests: write
contents: write

jobs:
build:
runs-on: windows-latest
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Build, Tests, Cover, Pack and Publish (on push tag)
shell: bash
run: |
dotnet tool install --global dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_TOKEN}}" --github-token "${{secrets.GITHUB_TOKEN}}" ./dotnet-releaser.toml
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 2dbda83

Please sign in to comment.