Skip to content

Commit bc85302

Browse files
committed
fix
1 parent 69c4485 commit bc85302

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/upload_win_env.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Create virtual environment & install dependencies
3131
run: |
3232
python -m venv --copies easyearth_env
33-
easyearth_env\Scripts\activate
33+
call easyearth_env\Scripts\activate.bat
3434
python -m pip install --upgrade pip
3535
python -m pip install -r requirements.txt
3636
shell: cmd
@@ -49,13 +49,18 @@ jobs:
4949
powershell Compress-Archive -Path easyearth_env -DestinationPath easyearth_env_win.zip -Force
5050
shell: pwsh
5151

52-
- name: Delete existing release (if exists)
52+
- name: Check if release with tag exists
53+
id: get_release
54+
uses: octokit/request-action@v2.4.0
55+
with:
56+
route: GET /repos/${{ github.repository }}/releases/tags/win-env-v1
57+
continue-on-error: true # so workflow continues if not found
58+
59+
- name: Delete release if found
60+
if: ${{ steps.get_release.outcome == 'success' }}
5361
uses: octokit/request-action@v2.4.0
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5662
with:
5763
route: DELETE /repos/${{ github.repository }}/releases/tags/win-env-v1
58-
fail-on-error: false
5964

6065
- name: Delete existing tag (if exists)
6166
run: |

0 commit comments

Comments
 (0)