Skip to content

Commit

Permalink
I hate this why is this the most complicated thing in existence
Browse files Browse the repository at this point in the history
  • Loading branch information
RainOrigami committed Sep 8, 2023
1 parent acf7a87 commit 858ac5c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
- name: Extract Tag Name
id: extract-tag-name
run: |
echo "{tag_name}={$(basename ${{ github.ref }})}" >> $GITHUB_OUTPUT
echo $(basename ${{ github.ref }})
echo $GITHUB_OUTPUT
echo "tag_name=$(basename ${{ github.ref }})" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,7 +52,7 @@ jobs:
tag_name="${{ steps.extract-tag-name.outputs.tag_name }}"
previous_tag=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))
changelog=$(git log --pretty=format:"- %s" $previous_tag..$tag_name)
echo "{changelog}={$changelog}" >> $GITHUB_OUTPUT
echo "$changelog" >> ${{ github.workspace }}-CHANGELOG.txt
- name: Publish Release Assets
id: publish-assets
Expand All @@ -64,7 +62,7 @@ jobs:
${{ steps.extract-tag-name.outputs.tag_name }}.zip
nuget/*.nupkg
tag_name: ${{ steps.extract-tag-name.outputs.tag_name }}
body: ${{ steps.generate-changelog.outputs.changelog }}
body_path: ${{ github.workspace }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 858ac5c

Please sign in to comment.