Skip to content

Commit

Permalink
chore: push tag by ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Nov 9, 2023
1 parent 8466efc commit 9f92db2
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ name: Release Version
on:
workflow_dispatch:
inputs:
release_version:
VERSION:
description: 'The version of release'
required: true
default: ''
release_branch:
description: 'The branch of release'
required: true
default: 'main'

run-name: ref_name:${{ inputs.release_branch }} release_version:${{ inputs.release_version }}
run-name: ref_name:${{ github.ref_name }} release_version:${{ inputs.VERSION }}

env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand All @@ -21,14 +17,11 @@ jobs:
release-version:
runs-on: ubuntu-latest
steps:
- name: checkout branch ${{ inputs.release_branch }}
- name: checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4
with:
ref: ${{ inputs.release_branch }}

- name: push tag
uses: mathieudutour/[email protected]
with:
custom_tag: ${{ inputs.release_version }}
custom_tag: ${{ inputs.VERSION }}
github_token: ${{ env.GITHUB_TOKEN }}
tag_prefix: ""

0 comments on commit 9f92db2

Please sign in to comment.