Skip to content

Commit

Permalink
Update release_trigger.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cachapa authored Nov 27, 2023
1 parent fb06937 commit 07e478f
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/release_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,35 @@ on:
inputs:
android:
description: 'Android'
required: true
default: 'true'
type: boolean
ios:
description: 'iOS'
required: true
default: 'true'
type: boolean

jobs:
release:
version:
runs-on: ubuntu-latest

steps:
- run: |
echo "Android: $ANDROID"
echo "iOS: $IOS"
- name: read-yaml-file
uses: pietrobolcato/action-read-yaml@1
id: v
with:
config: ${{ github.workspace }}/pubspec.yaml
env:
ANDROID: ${{ inputs.android }}
IOS: ${{ inputs.ios }}
version: outputs['version']

android:
if: inputs.android
uses: ./.github/workflows/test_release.yml
secrets: inherit
with:
version: "1.2.${{ github.run_number }}"
version: "${{ steps.v.version }}"

# - name: Create release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: ${{ github.ref }}
#
ios:
if: inputs.ios
uses: ./.github/workflows/test_release.yml
secrets: inherit
with:
version: "1.2.${{ github.run_number }}"

0 comments on commit 07e478f

Please sign in to comment.