Skip to content

Commit

Permalink
use outputs instead of envs
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Nov 27, 2024
1 parent 5c163fc commit f2d9baf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/apps_wallet_prod_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ jobs:
run: |
if [ "${{ env.PREV_TAG }}" = "none" ]; then
echo "No previous tag found. Skipping changelog generation."
echo "changelog=No previous tag found. Changelog generation skipped." >> $GITHUB_ENV
echo "changelog=No previous tag found. Changelog generation skipped." >> $GITHUB_OUTPUT
else
git log ${{ env.PREV_TAG }}..${{ env.CURRENT_TAG }} --pretty=format:"- %s by @%an in #%h" -- ./apps/wallet > CHANGELOG.md
changelog=$(cat CHANGELOG.md)
echo "changelog=$changelog" >> $GITHUB_ENV
echo "changelog=$changelog" >> $GITHUB_OUTPUT
fi
- name: Get version from tag
Expand All @@ -74,12 +74,13 @@ jobs:
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHANGELOG: ${{ steps.generate_changelog.outputs.changelog }}
with:
tag_name: ${{ env.CURRENT_TAG }}
name: IOTA Wallet v${{ steps.version.outputs.version }}
body: |
## Changelog
{{ env.changelog }}
{{ env.CHANGELOG }}
draft: true
prerelease: false
- name: Upload artifacts
Expand Down

0 comments on commit f2d9baf

Please sign in to comment.