Skip to content

Commit 1f955b7

Browse files
committed
ci: update
1 parent e55230b commit 1f955b7

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ updates:
77
time: "08:00"
88
labels:
99
- "dependencies"
10-
- "automerge"
1110
- package-ecosystem: "github-actions"
1211
directory: "/"
1312
schedule:
1413
interval: "daily"
1514
time: "08:00"
1615
labels:
1716
- "dependencies"
18-
- "automerge"

.github/workflows/build.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,21 @@ jobs:
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
46-
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
47-
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
48-
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
49-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
46+
dependabot:
47+
needs: [build]
48+
runs-on: ubuntu-latest
49+
permissions:
50+
pull-requests: write
51+
contents: write
52+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
53+
steps:
54+
- id: metadata
55+
uses: dependabot/fetch-metadata@v2
56+
with:
57+
github-token: "${{ secrets.GITHUB_TOKEN }}"
58+
- run: |
59+
gh pr review --approve "$PR_URL"
60+
gh pr merge --squash --auto "$PR_URL"
61+
env:
62+
PR_URL: ${{github.event.pull_request.html_url}}
63+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)