forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Alessandro Portale
parent
62e2f81caa
commit
820fa993a6
24
.github/workflows/build_cmake.yml
vendored
24
.github/workflows/build_cmake.yml
vendored
@@ -374,23 +374,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Pack
|
- name: Pack
|
||||||
working-directory: instdir
|
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
|
- name: Pack Devel
|
||||||
working-directory: instdir-dev
|
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
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z
|
path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z
|
name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
|
|
||||||
- name: Upload Devel
|
- name: Upload Devel
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z
|
path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z
|
||||||
name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z
|
name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z
|
||||||
|
|
||||||
release:
|
release:
|
||||||
if: contains(github.ref, 'tags/v')
|
if: contains(github.ref, 'tags/v')
|
||||||
@@ -448,13 +448,13 @@ jobs:
|
|||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z
|
name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download Devel artifact
|
- name: Download Devel artifact
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}-dev.7z
|
name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Download URL
|
- name: Download URL
|
||||||
@@ -473,8 +473,8 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
|
upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
|
||||||
asset_path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z
|
asset_path: ./QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z
|
asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}.7z
|
||||||
asset_content_type: application/x-gtar
|
asset_content_type: application/x-gtar
|
||||||
|
|
||||||
- name: Upload Devel to Release
|
- name: Upload Devel to Release
|
||||||
@@ -483,6 +483,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
|
upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
|
||||||
asset_path: ./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.sha }}-dev.7z
|
asset_name: QtCreator-${{ matrix.config.artifact }}-${{ github.run_id }}-dev.7z
|
||||||
asset_content_type: application/x-gtar
|
asset_content_type: application/x-gtar
|
||||||
|
|||||||
Reference in New Issue
Block a user