Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 25c3902

Browse files
authored
ci: Add dependabot go-storage auto build support (#36)
* ci: Add dependabot go-storage auto build support * Rename and remove dependency name check * Update name
1 parent 79bcb93 commit 25c3902

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/auto-build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Dependabot auto build
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v1.1.0
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
19+
- name: Set up Go 1.x
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: "1.15"
23+
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
27+
- name: Auto build
28+
run: make build
29+
30+
- name: Auto commit
31+
uses: EndBug/add-and-commit@v7
32+
with:
33+
default_author: github_actions

0 commit comments

Comments
 (0)