This commit is contained in:
手瓜一十雪
2024-04-16 13:37:42 +08:00
parent 35c232ab25
commit f37bbf93cb
2 changed files with 17 additions and 9 deletions

View File

@@ -11,10 +11,14 @@ jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Clone
run: |
GITHUB_URL=https://oauth:${{ secrets.NAPCAT_BUILD }}@github.com//NapNeko/NapCatQQ
git clone --recurse-submodules ${GITHUB_URL} NapCatQQ
git config --global init.defaultBranch main
git config --global user.name "CheckVersion"
git config --global user.email "bot@noreply.github.com"
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
@@ -24,11 +28,14 @@ jobs:
with:
node-version: 20.x
- name: Check Version
- name: Clone Check Version
run: |
ls
node ./script/checkVersion.cjs
sh ./checkVersion.sh
cd ./NapCatQQ
node ./script/checkVersion.cjs
sh ./checkVersion.cjs
cd ..
build-linux:
needs: [check-version]
runs-on: ubuntu-latest