From f1856d9e8a72d38ee1eea41f6fb98d77ef031a7a Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Wed, 14 Jul 2021 14:20:46 +0800 Subject: [PATCH] ci: Add dependabot go-storage auto build support (#139) --- .github/workflows/go-storage-auto-build.yml | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/go-storage-auto-build.yml diff --git a/.github/workflows/go-storage-auto-build.yml b/.github/workflows/go-storage-auto-build.yml new file mode 100644 index 0000000..47ba475 --- /dev/null +++ b/.github/workflows/go-storage-auto-build.yml @@ -0,0 +1,38 @@ +name: Dependabot go-storage 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 }}" + + # FIXME: Please uncomment this block after test succeed. + #- name: Check dependency names + # if: steps.metadata.outputs.dependency-names != 'go-storage' + # run: exit 1 + + - 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