From aa433e49997ab37a62a59ac40cf02de49b580037 Mon Sep 17 00:00:00 2001 From: Richard Henning Date: Fri, 4 Jun 2021 19:41:53 -0400 Subject: [PATCH] ci: make release depend on tag and check out again to fetch new tags (#16) --- .github/workflows/release.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd1ce0e..218703e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,33 +8,25 @@ on: types: [completed] jobs: - changes: + tag: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest - outputs: - gosrc: ${{ steps.filter.outputs.gosrc }} - steps: - name: checkout uses: actions/checkout@v2 with: fetch-depth: 0 - - name: filter-src - id: filter - uses: dorny/paths-filter@v2 + - name: tag + uses: mathieudutour/github-tag-action@v5.5 with: - filters: | - gosrc: - - '**/*.go' - - 'go.mod' - - 'go.sum' + default_bump: false + github_token: ${{ secrets.GITHUB_TOKEN }} release: - needs: changes + needs: tag - if: ${{ needs.changes.outputs.gosrc == 'true' }} runs-on: ubuntu-latest steps: @@ -48,11 +40,6 @@ jobs: with: go-version: 1.16.x - - name: tag - uses: mathieudutour/github-tag-action@v5.5 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - - name: goreleaser uses: goreleaser/goreleaser-action@v2 with: