diff --git a/actions/release-notes/action.yml b/actions/release-notes/action.yml new file mode 100644 index 000000000..0878808f9 --- /dev/null +++ b/actions/release-notes/action.yml @@ -0,0 +1,26 @@ +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" \ No newline at end of file