fix: fix ci

This commit is contained in:
JustSong 2024-03-14 23:27:47 +08:00
parent b169173860
commit 8ede66a896
6 changed files with 39 additions and 6 deletions

View File

@ -4,7 +4,6 @@ on:
push: push:
tags: tags:
- '*' - '*'
- '!*-pro*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
name: name:
@ -21,6 +20,13 @@ jobs:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check repository URL
run: |
REPO_URL=$(git config --get remote.origin.url)
if [[ $REPO_URL == *"pro" ]]; then
exit 1
fi
- name: Save version info - name: Save version info
run: | run: |
git describe --tags > VERSION git describe --tags > VERSION

View File

@ -4,7 +4,6 @@ on:
push: push:
tags: tags:
- '*' - '*'
- '!*-pro*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
name: name:
@ -21,6 +20,13 @@ jobs:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check repository URL
run: |
REPO_URL=$(git config --get remote.origin.url)
if [[ $REPO_URL == *"pro" ]]; then
exit 1
fi
- name: Save version info - name: Save version info
run: | run: |
git describe --tags > VERSION git describe --tags > VERSION

View File

@ -5,7 +5,6 @@ on:
tags: tags:
- '*' - '*'
- '!*-alpha*' - '!*-alpha*'
- '!*-pro*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
name: name:
@ -22,6 +21,13 @@ jobs:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check repository URL
run: |
REPO_URL=$(git config --get remote.origin.url)
if [[ $REPO_URL == *"pro" ]]; then
exit 1
fi
- name: Save version info - name: Save version info
run: | run: |
git describe --tags > VERSION git describe --tags > VERSION

View File

@ -7,7 +7,6 @@ on:
tags: tags:
- '*' - '*'
- '!*-alpha*' - '!*-alpha*'
- '!*-pro*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
name: name:
@ -21,6 +20,12 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Check repository URL
run: |
REPO_URL=$(git config --get remote.origin.url)
if [[ $REPO_URL == *"pro" ]]; then
exit 1
fi
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16

View File

@ -7,7 +7,6 @@ on:
tags: tags:
- '*' - '*'
- '!*-alpha*' - '!*-alpha*'
- '!*-pro*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
name: name:
@ -21,6 +20,12 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Check repository URL
run: |
REPO_URL=$(git config --get remote.origin.url)
if [[ $REPO_URL == *"pro" ]]; then
exit 1
fi
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16

View File

@ -7,7 +7,6 @@ on:
tags: tags:
- '*' - '*'
- '!*-alpha*' - '!*-alpha*'
- '!*-pro*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
name: name:
@ -24,6 +23,12 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Check repository URL
run: |
REPO_URL=$(git config --get remote.origin.url)
if [[ $REPO_URL == *"pro" ]]; then
exit 1
fi
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16