diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-01-31 00:10:10 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-01-31 10:58:55 +0000 |
commit | 820fa993a6fdb349a57bb5ab4656b107c941f15d (patch) | |
tree | 9a1dccbbf82f1bd99744ea423dda19e00a7702dd /.github/workflows/build_cmake.yml | |
parent | 62e2f81caa7ce7091cf1c4dd422157f679703847 (diff) |
GitHub Workflow: Use github.run_id instead of github.sha
github.sha is the full sha, which is a bit too long.
Change-Id: I36982fc6705adf56358166445c8601e9aac85b6d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to '.github/workflows/build_cmake.yml')
-rw-r--r-- | .github/workflows/build_cmake.yml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 86adc992f0..4a504f70a7 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -374,23 +374,23 @@ jobs: - name: Pack working-directory: instdir - run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cfv ../QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z --format=7zip . + run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cfv ../QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z --format=7zip . - name: Pack Devel working-directory: instdir-dev - run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cfv ../QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z --format=7zip . + run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cfv ../QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z --format=7zip . - name: Upload uses: actions/upload-artifact@v1 with: - path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z - name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z + path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z + name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z - name: Upload Devel uses: actions/upload-artifact@v1 with: - path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z - name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z + path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z + name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z release: if: contains(github.ref, 'tags/v') @@ -448,13 +448,13 @@ jobs: - name: Download artifact uses: actions/download-artifact@v1 with: - name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z + name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z path: ./ - name: Download Devel artifact uses: actions/download-artifact@v1 with: - name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z + name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z path: ./ - name: Download URL @@ -473,8 +473,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.set_upload_url.outputs.upload_url }} - asset_path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z - asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z + asset_path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z + asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z asset_content_type: application/x-gtar - name: Upload Devel to Release @@ -483,6 +483,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.set_upload_url.outputs.upload_url }} - asset_path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z - asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z + asset_path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z + asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z asset_content_type: application/x-gtar |