Skip to content

Commit

Permalink
chore: support major and minor tags (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm authored Feb 18, 2024
1 parent 8f05cb8 commit b4afbbd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,18 @@ jobs:
release-type: simple
next-version: v2.0.0
last-release-sha: b62a69e27ae389aa92b450f647d37409b9277bf0

- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name semantic-releaser[bot]
git config user.email 102556+semantic-releaser[bot]@users.noreply.github.com
git remote add gh-token "https://${{ steps.app-token.outputs.token }}@github.com/npalm/action-docs-action.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
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The action will update you readme by replacing html comment tags. Add one of mor
- `description` : to add/update a section with a descriptions of the action
- `inputs`: to add/update a section with inputs of the action
- `outputs`: to add/update a section with outputs of the action
- `runs`: : to add/update a section of the environment required to run.
- `runs`: to add/update a section of the environment required to run.

In your workflow add the action, see below for the available parameters.

Expand Down

0 comments on commit b4afbbd

Please sign in to comment.