-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cd): workflow variable usage (#131)
Signed-off-by: GitHub <[email protected]>
- Loading branch information
1 parent
7014d1a
commit f58327f
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
# This job will run if the release is based on master branch | ||
if: github.event.release.target_commitish == 'master' | ||
env: | ||
RELEASE_TYPE: ${{ contains(github.event.release.tag_name, 'beta') && 'beta' || 'prod' }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
# Extract the release type | ||
- name: set release type | ||
id: release | ||
run: echo ::set-output name=type::${{ contains(github.event.release.tag_name, 'beta') && 'beta' || 'prod' }} | ||
|
||
# Setup Java environment in order to build the Android apps | ||
- uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -68,5 +65,5 @@ jobs: | |
# Ship the appbundle. | ||
- uses: maierj/[email protected] | ||
with: | ||
lane: ${{ release.outputs.type }} | ||
lane: ${{ env.RELEASE_TYPE }} | ||
subdirectory: android |