测试环境
Some checks failed
Gitea Actions Build / TestEnv (push) Successful in 2s
Gitea Actions Build / build and releases (push) Has been cancelled

This commit is contained in:
Armamem0t 2025-06-18 22:13:46 +08:00
parent a162f269d4
commit a77e05a088
Signed by: minglipro
GPG Key ID: 5F355A77B22AA93B

View File

@ -7,7 +7,7 @@ on:
- master - master
jobs: jobs:
Task: Build And Releases:
name: build and releases name: build and releases
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -33,6 +33,11 @@ jobs:
VERSIONS=$(echo "$VERSIONS" | tr -d '\r') VERSIONS=$(echo "$VERSIONS" | tr -d '\r')
FILENAME="${GROUPSID}-${VERSIONS}.jar" FILENAME="${GROUPSID}-${VERSIONS}.jar"
java -jar build/libs/${FILENAME} -s "${{gitea.server_url}}" -o "${{gitea.repository_owner}}" -r ${{gitea.event.repository.name}} -t "${{gitea.token}}" -ti "Auto releases ${{gitea.sha}} ${VERSIONS}" -b "# Auto releases wtih ${{gitea.event.head_commit.message}} - [${{gitea.sha}}](${{gitea.event.head_commit.url}})" -tn "Auto-Releases-${VERSIONS}-${{gitea.sha}}" -a "build/libs" java -jar build/libs/${FILENAME} -s "${{gitea.server_url}}" -o "${{gitea.repository_owner}}" -r ${{gitea.event.repository.name}} -t "${{gitea.token}}" -ti "Auto releases ${{gitea.sha}} ${VERSIONS}" -b "# Auto releases wtih ${{gitea.event.head_commit.message}} - [${{gitea.sha}}](${{gitea.event.head_commit.url}})" -tn "Auto-Releases-${VERSIONS}-${{gitea.sha}}" -a "build/libs"
TestEnv:
runs-on: ubuntu-latest
steps:
- name: TestPython2
run: |
python -v
python --version 2>&1 | grep -q "Python 2" && echo "Python 2 ready" || echo "Python 2 not found"