Changed commands to bash

This commit is contained in:
Juan Gilsanz Polo 2023-05-27 23:07:29 +02:00
parent a94fdc7407
commit 5d2631bd08

View file

@ -139,16 +139,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Decode .env
shell: pwsh
run: |
[IO.File]::WriteAllBytes('.env', [Convert]::FromBase64String('${{ secrets.ENV }}'))
shell: bash
run: echo '${{ secrets.ENV }}'' | base64 --decode > .env
- name: Update version in pubspec.yaml
shell: bash
run: sed -i 's/99.99.99+99/${{ github.event.inputs.version }}+${{ github.event.inputs.number }}/g' pubspec.yaml
- name: Update version in innosetup config file
shell: pwsh
run: |
(Get-Content windows/innosetup_installer_builder.iss) -replace '<REPLACE_VERSION_ACTIONS>', '${{ github.event.inputs.version }}' | Out-File -encoding ASCII windows/innosetup_installer_builder.iss
shell: bash
run: sed -i 's/<REPLACE_VERSION_ACTIONS>/${{ github.event.inputs.version }}/g' windows/innosetup_installer_builder.iss
- uses: subosito/flutter-action@v2
with:
channel: "stable"