From 05d476868e8b7c9f6a06f94459efa2bbbe5cc0ad Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Fri, 27 Jan 2023 10:24:42 +0100 Subject: [PATCH 1/2] fix warnings --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eddb64415..35c3bfa6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -306,7 +306,7 @@ jobs: - name: Test if: matrix.env.ninja_platform != 'win' && matrix.env.ninja_platform != 'mac' - uses: GabrielBB/xvfb-action@v1 + uses: GabrielBB/xvfb-action@v1.6 with: working-directory: build/release run: ninja check @@ -347,8 +347,12 @@ jobs: # version is exported from cmake to file - name: Retrieve version run: | - echo "::set-output name=VERSION::$(cat artifacts/Gittyup-VERSION/VERSION.txt)" - id: version + VER=$(cat artifacts/Gittyup-VERSION/VERSION.txt) + echo "VERSION=$VER" >> $GITHUB_ENV + + - name: Print version + run: | + echo ${{ env.VERSION }} - name: Update GitHub release (latest tag) uses: marvinpinto/action-automatic-releases@latest @@ -370,7 +374,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false - title: Gittyup Release ${{ steps.version.outputs.VERSION }} + title: Gittyup Release ${{ env.VERSION }} automatic_release_tag: ${{ github.ref_name }} files: | **/artifacts/Gittyup win64/Gittyup*.exe From 13a13fdd6600e2fff7d26bbf8523b4cf2acc8a92 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Fri, 27 Jan 2023 12:50:05 +0100 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35c3bfa6b..c359ba17b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -277,6 +277,16 @@ jobs: run: | cd build/release ninja package + + # version is exported from cmake to file + - name: Retrieve version + run: | + VER=$(cat build/release/VERSION.txt) + echo "VERSION=$VER" >> $GITHUB_ENV + + - name: Print version + run: | + echo ${{ env.VERSION }} # Command copied from flathub build process - name: Validate appdata file