From d2c1c9431b7671611fbcdc2fe28c53425096cec6 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Thu, 23 Nov 2023 03:14:02 +0100 Subject: [PATCH] Updated workflow --- .github/workflows/release-beta.yaml | 6 +++--- .github/workflows/release-stable.yaml | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-beta.yaml b/.github/workflows/release-beta.yaml index 792353e..5eb2f0a 100644 --- a/.github/workflows/release-beta.yaml +++ b/.github/workflows/release-beta.yaml @@ -26,11 +26,11 @@ jobs: - name: Decode .env run: echo "${{ secrets.ENV }}" | base64 --decode > .env - name: Read pubspec.yaml - uses: jbutcher5/read-yaml@1.6 + uses: christian-ci/action-yaml-github-output@v2 id: read_pubspec with: - file: './pubspec.yaml' - key-path: '["version"]' + file_path: './pubspec.yaml' + main_key: version - name: Save version on env variable id: save_version run: | diff --git a/.github/workflows/release-stable.yaml b/.github/workflows/release-stable.yaml index f5a4ee6..754384b 100644 --- a/.github/workflows/release-stable.yaml +++ b/.github/workflows/release-stable.yaml @@ -23,11 +23,11 @@ jobs: - name: Decode .env run: echo "${{ secrets.ENV }}" | base64 --decode > .env - name: Read pubspec.yaml - uses: jbutcher5/read-yaml@1.6 + uses: christian-ci/action-yaml-github-output@v2 id: read_pubspec with: - file: './pubspec.yaml' - key-path: '["version"]' + file_path: './pubspec.yaml' + main_key: version - name: Save version on env variable id: save_version run: | @@ -80,11 +80,11 @@ jobs: - name: Decode .env run: echo "${{ secrets.ENV }}" | base64 --decode > .env - name: Read pubspec.yaml - uses: jbutcher5/read-yaml@1.6 + uses: christian-ci/action-yaml-github-output@v2 id: read_pubspec with: - file: './pubspec.yaml' - key-path: '["version"]' + file_path: './pubspec.yaml' + main_key: version - name: Save version on env variable id: save_version run: | @@ -140,11 +140,11 @@ jobs: - name: Decode .env run: echo "${{ secrets.ENV }}" | base64 --decode > .env - name: Read pubspec.yaml - uses: jbutcher5/read-yaml@1.6 + uses: christian-ci/action-yaml-github-output@v2 id: read_pubspec with: - file: './pubspec.yaml' - key-path: '["version"]' + file_path: './pubspec.yaml' + main_key: version - name: Save version on env variable id: save_version run: | @@ -203,11 +203,11 @@ jobs: run: | [IO.File]::WriteAllBytes('.env', [Convert]::FromBase64String('${{ secrets.ENV }}')) - name: Read pubspec.yaml - uses: jbutcher5/read-yaml@1.6 + uses: christian-ci/action-yaml-github-output@v2 id: read_pubspec with: - file: './pubspec.yaml' - key-path: '["version"]' + file_path: './pubspec.yaml' + main_key: version - name: Save version on env variable shell: bash id: save_version