Skip to content

Commit

Permalink
Fixing tag creation to point correct commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Guney Saramali committed Jun 18, 2024
1 parent 3ef2b76 commit d10ad7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/set-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,20 @@ jobs:
run: ./scripts/set-version.sh ${{ steps.split_version.outputs.version }}

- name: Commit new version
id: auto_commit_action
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master

- name: Checkout repository again for tags to containt commited files
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.PAT }}

- name: Create release tag
uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "v${{ steps.split_version.outputs.version }}"
tag_exists_error: false
message: "Release version: ${{ steps.split_version.outputs.version }}"
token: ${{ secrets.PAT }}
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
github_token: ${{ secrets.PAT }}
commit_sha: ${{ steps.auto_commit_action.outputs.commit_hash }}

- name: Recreate latest tag
uses: rickstaa/action-create-tag@v1
Expand All @@ -56,6 +50,5 @@ jobs:
tag_exists_error: false
force_push_tag: true
message: "Release version: ${{ steps.split_version.outputs.version }}"
token: ${{ secrets.PAT }}
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
github_token: ${{ secrets.PAT }}
commit_sha: ${{ steps.auto_commit_action.outputs.commit_hash }}
2 changes: 1 addition & 1 deletion internal/constants/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package constants

const VERSION = "v1.0.0"
const VERSION = "latest"

0 comments on commit d10ad7a

Please sign in to comment.