From 0438b317fe596e5250ca0ac0bd16e1d8eea3e3e9 Mon Sep 17 00:00:00 2001 From: JinnyYi Date: Wed, 14 Jul 2021 19:01:02 +0800 Subject: [PATCH] ci: Add dependabot auto build support --- .github/workflows/auto-build.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/auto-build.yml diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml new file mode 100644 index 0000000..2158343 --- /dev/null +++ b/.github/workflows/auto-build.yml @@ -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/fetch-metadata@v1.1.0 + 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