Skip to content

Commit

Permalink
nicer tag formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Sep 12, 2024
1 parent d29dad8 commit 8d26283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Bump Program Version
run: |
git fetch --tags --all
VERSION=`git tag -l --sort -version:refname "release/${{ inputs.program }}/*" | head -n 1 | sed 's|release/${{ inputs.program }}/||'`
VERSION=`git tag -l --sort -version:refname "release/${{ inputs.program }}@*" | head -n 1 | sed 's|release/${{ inputs.program }}@||'`
MAJOR=`echo ${VERSION} | cut -d. -f1`
MINOR=`echo ${VERSION} | cut -d. -f2`
PATCH=`echo ${VERSION} | cut -d. -f3`
Expand Down Expand Up @@ -99,8 +99,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release/${{ inputs.program }}/${{ env.PROGRAM_VERSION }}
release_name: Release ${{ inputs.program }} v${{ env.PROGRAM_VERSION }}
tag_name: release/${{ inputs.program }}@${{ env.PROGRAM_VERSION }}
release_name: ${{ inputs.program }} v${{ env.PROGRAM_VERSION }}
body: |
Release ${{ inputs.program }} v${{ env.PROGRAM_VERSION }}
draft: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ on:
- eclipse-mainnet
- eclipse-devnet
git_ref:
description: Release tag (release/1.x.x) or commit to deploy
description: Release tag (release/[email protected]) or (release/[email protected]) or commit to deploy
required: true
type: string
default: release/1.0.0
default: release/[email protected]
dry_run:
description: Dry run
required: false
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.git_ref }}
ref: ${{ inputs.git_ref }}

- name: Load environment variables
run: cat .github/.env >> $GITHUB_ENV
Expand Down

0 comments on commit 8d26283

Please sign in to comment.