try to get log body #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Sample Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
permissions: | ||
contents: write | ||
jobs: | ||
release: | ||
name: Release pushed tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate changelog | ||
id: changelog | ||
uses: metcalfc/changelog-generator@v4.3.1 | ||
with: | ||
myToken: ${{ secrets.ACCESS_TOKEN }} | ||
- name: Echo log | ||
run: echo "${{ steps.changelog.outputs.changelog }}" > out.md | ||
- name: Cat log | ||
run: cat out.md | ||
- name: Upload sample | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: Sample/Resource packs ${{ github.ref_name }} | ||
repo_token: ${{ secrets.ACCESS_TOKEN }} | ||
overwrite: true | ||
allowUpdates: true | ||
body: ${{ steps.changelog.outputs.changelog }} |