Skip to content

Commit

Permalink
fix(cd): workflow variable usage (#131)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
manjotsidhu authored Aug 16, 2021
1 parent 7014d1a commit f58327f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -68,5 +65,5 @@ jobs:
# Ship the appbundle.
- uses: maierj/[email protected]
with:
lane: ${{ release.outputs.type }}
lane: ${{ env.RELEASE_TYPE }}
subdirectory: android

0 comments on commit f58327f

Please sign in to comment.