From 5d2631bd0817b8016787f221a7ea2c78dc9f21c0 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Sat, 27 May 2023 23:07:29 +0200 Subject: [PATCH] Changed commands to bash --- .github/workflows/release.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1e0389f..34ea6b2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 '', '${{ github.event.inputs.version }}' | Out-File -encoding ASCII windows/innosetup_installer_builder.iss + shell: bash + run: sed -i 's//${{ github.event.inputs.version }}/g' windows/innosetup_installer_builder.iss - uses: subosito/flutter-action@v2 with: channel: "stable"