fix: forceer HTTPS checkout actie
This commit is contained in:
1 parent
3bf9765917
commit
4852847e0f
1 file changed
+4
-3
@@ -3,16 +3,17 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- master
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- master
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
if: startsWith(gitea.ref_name, 'v') == false
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
@@ -25,7 +26,7 @@ jobs:
|
|||||||
- name: Typecheck, lint, and test
|
- name: Typecheck, lint, and test
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
echo "--- CI checks starten ---"
|
echo "--- CI checks starten via HTTPS ---"
|
||||||
node scripts/check-node-toolchain.mjs
|
node scripts/check-node-toolchain.mjs
|
||||||
|
|
||||||
export SKIP_ENV_VALIDATION=1
|
export SKIP_ENV_VALIDATION=1
|
||||||
@@ -44,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: check
|
needs: check
|
||||||
if: gitea.event_name == 'push' && gitea.ref_name == 'main'
|
if: gitea.event_name == 'push' && (gitea.ref_name == 'main' || gitea.ref_name == 'master')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code for deploy
|
- name: Check out repository code for deploy
|
||||||
|
|||||||
Reference in new issue
Block a user