mirror of
https://github.com/standardnotes/web.git
synced 2024-09-11 14:55:35 +03:00
26 lines
667 B
YAML
26 lines
667 B
YAML
name: Release Notes
|
|
description: Runs scripts/changelog-parser for package
|
|
|
|
inputs:
|
|
package:
|
|
description: Package name
|
|
required: true
|
|
|
|
outputs:
|
|
result:
|
|
description: Outputs release notes
|
|
value: ${{ steps.set.outputs.result }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- id: set
|
|
shell: bash
|
|
env:
|
|
text: ${{ inputs.text }}
|
|
run: |
|
|
RELEASE_NOTES="$(node scripts/changelog-parser.js ${{ inputs.package }})"
|
|
RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}"
|
|
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}"
|
|
RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}"
|
|
echo "::set-output name=result::$RELEASE_NOTES" |