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

Commit

Permalink
ci: Add dependabot auto build support (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinnyYi authored Jul 14, 2021
1 parent 7af57f8 commit ce6ff64
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Dependabot Auto Build
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: "1.15"

- name: Checkout repository
uses: actions/checkout@v2

- name: Auto build
run: make build

- name: Auto commit
uses: EndBug/add-and-commit@v7
with:
default_author: github_actions

0 comments on commit ce6ff64

Please sign in to comment.