From e487e8af70a6ebe03567b16d9b7c762b640319b0 Mon Sep 17 00:00:00 2001 From: Valentin Prugnaud Date: Mon, 16 Oct 2023 10:26:50 -0700 Subject: [PATCH] ci: fix release please (#860) --- .github/workflows/release-please.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a078b242..bc2f570c 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,3 +1,5 @@ +name: release-please + on: push: branches: @@ -7,24 +9,26 @@ permissions: contents: write pull-requests: write -name: release-please - jobs: release-please: + name: Release Please runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - name: Run Release Please + uses: google-github-actions/release-please-action@v3 with: release-type: simple package-name: git-democracy - command: github-release - - uses: actions/checkout@v4 - - name: tag major and minor versions + + - name: Checkout + uses: actions/checkout@v4 + + - name: Tag major and minor versions if: ${{ steps.release.outputs.release_created }} run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git" + git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ env.GITHUB_REPOSITORY}}.git" git tag -d v${{ steps.release.outputs.major }} || true git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true git push origin :v${{ steps.release.outputs.major }} || true