Skip to content

Commit

Permalink
fix unable to cancel action (ModelCloud#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud authored Oct 5, 2024
1 parent 294a574 commit a87c220
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit a87c220

Please sign in to comment.