Skip to content

Commit

Permalink
Socorta
Browse files Browse the repository at this point in the history
try to fix
  • Loading branch information
duccas authored Oct 20, 2023
2 parents 94380c0 + 0a02e21 commit 6cbbd59
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ jobs:
version=$(grep -oE 'version\s+=\s+"([^"]+)"' ./release | awk -F'"' '{print $2}')
release_name=$(grep -oE 'release_name\s+=\s+"([^"]+)"' ./release | awk -F'"' '{print $2}')
description=$(awk -F'= ' '/description/ {getline; while ($0 !~ /^"""/) {print $0; getline}}' ./release)
echo "TAG_NAME=$version" >> $GITHUB_ENV
echo "RELEASE_NAME=$release_name" >> $GITHUB_ENV
echo "RELEASE_BODY=$description" >> $GITHUB_ENV
echo "::set-output name=TAG_NAME::$version"
echo "::set-output name=RELEASE_NAME::$release_name"
echo "::set-output name=RELEASE_BODY::$description"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.RELEASE_NAME }}_${{ env.TAG_NAME }}
body: ${{ env.RELEASE_BODY }}
tag_name: ${{ steps.env_vars.outputs.TAG_NAME }}
release_name: ${{ steps.env_vars.outputs.RELEASE_NAME }}_${{ steps.env_vars.outputs.TAG_NAME }}
body: ${{ steps.env_vars.outputs.RELEASE_BODY }}

- name: Create Tag
run: |
git tag ${{ env.TAG_NAME }}
git push origin ${{ env.TAG_NAME }}
git tag ${{ steps.env_vars.outputs.TAG_NAME }}
git push origin ${{ steps.env_vars.outputs.TAG_NAME }}

0 comments on commit 6cbbd59

Please sign in to comment.