Skip to content

Commit

Permalink
Refactor previous tag to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
mason committed Oct 15, 2024
1 parent 3d7d47b commit 38997ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ jobs:
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_ENV
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/generate-notes" \
-d '{"tag_name":"${{ github.ref_name }}","target_commitish":"${{ github.head_ref }}","previous_tag_name":"${{ env.previous_tag }}"}')
-d '{"tag_name":"${{ github.ref_name }}","target_commitish":"${{ github.sha }}","previous_tag_name":"auto"}')
if [[ $? -eq 0 ]] && [[ ! -z "$response" ]]; then
body=$(echo "$response" | jq -r '.body')
echo "$body" > release-notes.md
cat release-notes.md
fi
- name: Upload Release Assets
Expand Down

0 comments on commit 38997ba

Please sign in to comment.