Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Nov 15, 2023
1 parent 55f3870 commit 5642ce1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 5642ce1

Please sign in to comment.