From 06f7f73741486012fdef93c5f88edc4f0ea20447 Mon Sep 17 00:00:00 2001 From: mschwoerer <82171591+mschwoer@users.noreply.github.com> Date: Mon, 26 Aug 2024 12:09:03 +0200 Subject: [PATCH] improvements --- .github/workflows/create_release.yml | 40 +++++++++++++++++----------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 94c57f9d..81931c2b 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -91,6 +91,7 @@ jobs: ARCH: x64 # this can be overwritten during the course of the job EAGER_IMPORT: true ARTIFACT_NAME: na # will be set downstream + GH_TOKEN: ${{ github.token }} strategy: matrix: runner: @@ -98,17 +99,17 @@ jobs: - macos-13 # this is not ARM runs-on: ${{matrix.runner}} steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ inputs.commit_to_release }} + - name: Check if OS supported if: ${{ always() && hashFiles('release/macos/*') == '' }} run: | gh run cancel ${{ github.run_id }} gh run watch ${{ github.run_id }} - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ inputs.commit_to_release }} - - name: Install conda uses: conda-incubator/setup-miniconda@v3 with: @@ -194,19 +195,20 @@ jobs: needs: [ Create_Draft_Release, Get_New_Version ] env: ARCH: x64 # this can be overwritten during the course of the job + GH_TOKEN: ${{ github.token }} runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ inputs.commit_to_release }} + - name: Check if OS supported if: ${{ always() && hashFiles('release/linux/*') == '' }} run: | gh run cancel ${{ github.run_id }} gh run watch ${{ github.run_id }} - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ inputs.commit_to_release }} - - name: Install conda uses: conda-incubator/setup-miniconda@v3 with: @@ -271,8 +273,14 @@ jobs: needs: [Create_Draft_Release, Get_New_Version] env: ARCH: x64 # this can be overwritten during the course of the job + GH_TOKEN: ${{ github.token }} runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ inputs.commit_to_release }} + - name: Check if OS supported if: ${{ always() && hashFiles('release/sdfdssf/*') == '' }} run: | @@ -284,24 +292,24 @@ jobs: with: ref: ${{ inputs.commit_to_release }} - Create_Windows_Installer: needs: [Create_Draft_Release, Get_New_Version] env: ARCH: x64 # this can be overwritten during the course of the job + GH_TOKEN: ${{ github.token }} runs-on: windows-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ inputs.commit_to_release }} + - name: Check if OS supported if: ${{ always() && hashFiles('release/windows/*') == '' }} run: | gh run cancel ${{ github.run_id }} gh run watch ${{ github.run_id }} - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ inputs.commit_to_release }} - - name: Install conda uses: conda-incubator/setup-miniconda@v3 with: