Skip to content

Commit

Permalink
ci: update the release creation step to get the correct tag version -…
Browse files Browse the repository at this point in the history
…- try 2

Signed-off-by: Ali Sajid Imami <[email protected]>
  • Loading branch information
AliSajid committed May 11, 2024
1 parent 6b5205a commit e2b5080
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/create_github_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ jobs:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Get most recent tag
id: get_tag
run: echo "tag_version=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"
run: echo "TAG_VERSION=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
- name: Create Release
id: create_release
env:
GITHUB_TOKEN: ${{ github.token }}
TAG_VERSION: ${{ steps.get_tag.outputs.tag_version }}
run: |
echo "Creating release for tag $TAG_VERSION"
gh release create $TAG_VERSION --title "Release $TAG_VERSION" --notes "Release $TAG_VERSION" --target devel
Expand Down

0 comments on commit e2b5080

Please sign in to comment.