Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 25753bf

Browse filesBrowse files
authored
ci: dependabot
1 parent e924b98 commit 25753bf
Copy full SHA for 25753bf

1 file changed

+19Lines changed: 19 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,22 @@ jobs:
1717
go-version: 1.19
1818
cache: true
1919
- run: go test -v ./...
20+
21+
dependabot:
22+
needs: [build]
23+
runs-on: ubuntu-latest
24+
permissions:
25+
pull-requests: write
26+
contents: write
27+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
28+
steps:
29+
- id: metadata
30+
uses: dependabot/fetch-metadata@v2
31+
with:
32+
github-token: "${{ secrets.GITHUB_TOKEN }}"
33+
- run: |
34+
gh pr review --approve "$PR_URL"
35+
gh pr merge --squash --auto "$PR_URL"
36+
env:
37+
PR_URL: ${{github.event.pull_request.html_url}}
38+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.