From 77831b17bc2960320de3d8f6f4b00fdb748cabdf Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 21 Jun 2024 15:27:08 +0200 Subject: [PATCH] Test build nightly --- .github/workflows/release.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c816e47..06d03520 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -119,27 +119,23 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Extract version - id: version - if: runner.os != 'Windows' + - name: Extract version1 + id: version1 + if: github.event_name == 'workflow_run' run: | - if [ "${{ github.event_name == 'workflow_run' }}" = "true" ]; then - VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2) - echo version=v$VERSION-nightly >> $GITHUB_OUTPUT - else - echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT - fi - - - name: Extract version + VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2) + echo version=v$VERSION-nightly >> $GITHUB_OUTPUT + + - name: Extract version2 + id: version2 + if: github.event_name != 'workflow_run' + run: | + echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT + + - name: Set version id: version - if: runner.os == 'Windows' run: | - if (${{ github.event_name == 'workflow_run' }}) { - VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2) - echo version=v$VERSION-nightly >> $GITHUB_OUTPUT - } else { - echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT - } + echo "version=${{ steps.version1.outputs.version }}${{ steps.version2.outputs.version }}" >> $GITHUB_OUTPUT - name: Update musl tools if: matrix.build-with == 'cargo' && matrix.os == 'linux'