From d18df20e8925f0e8d4211d9431dfc78febd41e65 Mon Sep 17 00:00:00 2001 From: Mo Date: Tue, 5 Jul 2022 11:09:25 -0500 Subject: [PATCH] chore: readd release notes action --- actions/release-notes/action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 actions/release-notes/action.yml 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