From 855594e64ac4d53227175fe1c585e7beb74d4e60 Mon Sep 17 00:00:00 2001 From: JinnyYi <82445294+JinnyYi@users.noreply.github.com> Date: Wed, 14 Jul 2021 18:35:41 +0800 Subject: [PATCH] ci: Add dependabot auto build support (#11) --- .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