Skip to content

Commit

Permalink
tyring a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
ADorigi committed May 28, 2024
1 parent 8a1af20 commit 2d809c2
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,29 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Bump version and push tag
- name: Tag version
id: tag_version
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
PRERELEASE: true
PRERELEASE_SUFFIX: rc
# - name: Tag version
# id: tag_version
# uses: mathieudutour/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# pre_release_branches: main
# append_to_pre_release_tag: rc
# tag_prefix: v
uses: RomainEndelin/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pre_release_branches: main
append_to_pre_release_tag: rc
tag_prefix: v
force_prerelease_bump: prerelease
- name: Set latest tag output
id: set_latest_tag
run: echo "latest_tag=${{ steps.tag_version.outputs.new_tag }}" >> "$GITHUB_OUTPUT"
run: echo "latest_tag=${{ steps.tag_version.outputs.new_tag }}-rc" >> "$GITHUB_OUTPUT"

- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/<tagname>',
sha: context.sha
})
- name: Save new tag
id: save_new_tag
run: |
Expand Down

0 comments on commit 2d809c2

Please sign in to comment.