Skip to content

Commit 68d2212

Browse files
committed
Don’t run windows when a PR is closed
1 parent feb12b2 commit 68d2212

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ jobs:
3737
CI: true
3838

3939
# Deploy preview environment
40-
- name: Build And Deploy
41-
uses: Azure/static-web-apps-deploy@v1
40+
- uses: Azure/static-web-apps-deploy@v1
4241
with:
4342
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PROD }}
4443
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -59,14 +58,15 @@ jobs:
5958
npm init typescript-playground-plugin playground-my-plugin
6059
6160
windows:
61+
if: github.event.action != 'closed'
6262
runs-on: windows-latest
6363

6464
steps:
6565
# Check out, and set up the node infra
6666
- uses: actions/checkout@v2
6767
- uses: actions/setup-node@v2
6868
with:
69-
node-version: "13.x"
69+
node-version: "14.x"
7070
cache: yarn
7171

7272
# Get local dependencies
@@ -82,7 +82,7 @@ jobs:
8282
cd ..
8383
npm init typescript-playground-plugin playground-my-plugin
8484
85-
close:
85+
close_preview_environment:
8686
if: github.event.action == 'closed'
8787
runs-on: ubuntu-latest
8888
name: Close preview environment deployment

0 commit comments

Comments
 (0)