Examples
💡 Click on the heading to expand/collapse the item.
Steps
Custom Heading
yaml
- name: "Package Changelog Action"
id: changelog
uses: cssnr/package-changelog-action@v2
with:
update: false
- name: "Echo Output"
env:
JSON: ${{ steps.changelog.outputs.json }}
MARKDOWN: ${{ steps.changelog.outputs.markdown }}
run: |
echo "json: '${{ env.JSON }}'"
echo "markdown: '${{ env.MARKDOWN }}'"Custom Column Order
yaml
- name: "Package Changelog Action"
uses: cssnr/package-changelog-action@v2
with:
columns: "n,t,b,a"Custom Section Order
yaml
- name: "Package Changelog Action"
uses: cssnr/package-changelog-action@v2
with:
sections: "u,a,d,r,k"Use Outputs Only
yaml
- name: "VirusTotal"
uses: cssnr/virustotal-action@v1
if: ${{ github.event_name == 'release' }}
with:
vt_api_key: ${{ secrets.VT_API_KEY }}Workflows
Full workflow example
yaml
name: "Release"
on:
release:
types: [published]
jobs:
release:
name: "Release"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
steps:
- name: "Package Changelog Action"
uses: cssnr/package-changelog-action@v2
continue-on-error: trueNote: the permissions are applied to the individual job here.
For more examples, you can check out other projects using this action:
https://github.com/cssnr/virustotal-action/network/dependents
