From a87c220953200d35f49266db47fbd6d37802ee11 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Sat, 5 Oct 2024 11:19:52 +0800 Subject: [PATCH] fix unable to cancel action (#412) --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 607e22ace..841f70332 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,7 +166,7 @@ jobs: needs: - check-vm - release-source - if: (needs.check-vm.outputs.tag == '0' || needs.check-vm.outputs.tag == '1') || github.event_name == 'release' + if: ((needs.check-vm.outputs.tag == '0' || needs.check-vm.outputs.tag == '1') || github.event_name == 'release') && needs.check-vm.outputs.amd_list != '' && !cancelled() container: image: ${{ needs.check-vm.outputs.ip }}:5000/modelcloud/gptqmodel:${{ matrix.tag }} timeout-minutes: 50 @@ -221,7 +221,7 @@ jobs: - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 - if: github.event_name == 'release' + if: github.event_name == 'release' && !cancelled() with: repo_name: ${{ env.repo }} tag: ${{ env.ref }} @@ -239,7 +239,7 @@ jobs: needs: - check-vm - release-source - if: ((needs.check-vm.outputs.tag == '0' || needs.check-vm.outputs.tag == '2') || github.event_name == 'release') && needs.check-vm.outputs.intel_list != '' + if: ((needs.check-vm.outputs.tag == '0' || needs.check-vm.outputs.tag == '2') || github.event_name == 'release') && needs.check-vm.outputs.intel_list != '' && !cancelled() container: image: ${{ needs.check-vm.outputs.ip }}:5000/modelcloud/gptqmodel:${{ matrix.tag }} timeout-minutes: 50 @@ -294,7 +294,7 @@ jobs: - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 - if: github.event_name == 'release' + if: github.event_name == 'release' && !cancelled() with: repo_name: ${{ env.repo }} tag: ${{ env.ref }} @@ -361,14 +361,14 @@ jobs: - name: Upload package to release uses: svenstaro/upload-release-action@v2 - if: github.event_name == 'release' + if: github.event_name == 'release' && !cancelled() with: file: dist/${{ env.WHL_NAME }} tag: ${{ env.ref }} file_glob: true - name: Upload sdist to pypi - if: github.event_name == 'release' + if: github.event_name == 'release' && !cancelled() env: TWINE_USERNAME: "__token__" TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}