From 5642ce1fc004382e369a2be000de3da1bfd4714a Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Wed, 15 Nov 2023 09:58:31 -0600 Subject: [PATCH] fix --- action.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 3bb995d..a8e6aaf 100644 --- a/action.yml +++ b/action.yml @@ -26,17 +26,19 @@ runs: using: composite steps: - uses: shorebirdtech/setup-shorebird@v0 - id: shorebird-release with: flutter-version: ${{ inputs.flutter-version }} + + - name: Shorebird Release + shell: bash + working-directory: ${{ inputs.working-directory }} run: | OUTPUT=$(shorebird release ${{ inputs.platform }}) REGEXP="Published Release (.*)!" if [[ $OUTPUT =~ $REGEXP ]]; then - RELEASE_VERSION=${BASH_REMATCH[1]} - echo "release-version=$(echo $RELEASE_VERSION)" >> $GITHUB_OUTPUT + RELEASE_VERSION=${BASH_REMATCH[1]} + echo "release-version=$(echo $RELEASE_VERSION)" >> $GITHUB_OUTPUT else - echo "Failed to create release" - exit 1 + echo "Failed to create release" + exit 1 fi - working-directory: ${{ inputs.working-directory }}