Skip to content

Commit

Permalink
Merge pull request #56 from sky172839465/sky172839465-patch-1
Browse files Browse the repository at this point in the history
ci: add dependabot.yml
  • Loading branch information
sky172839465 authored Sep 28, 2024
2 parents be03820 + 469c1d3 commit ed647f6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: dependabot
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
# if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Deploy PR
id: deploy-pr
uses: superfly/[email protected].0
uses: superfly/[email protected].1
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

Expand Down

0 comments on commit ed647f6

Please sign in to comment.