Skip to content

Commit

Permalink
ci: fix release please (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxted committed Oct 16, 2023
1 parent c67831b commit e487e8a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: release-please

on:
push:
branches:
Expand All @@ -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
Expand Down

0 comments on commit e487e8a

Please sign in to comment.