bugfix:
Continuous integration / Build (push) Failing after 7s Details
Continuous integration / Check Build Status (push) Has been skipped Details

This commit is contained in:
chenwj 2024-09-04 18:51:30 +08:00
parent 7fe707d8ea
commit 9aa1874500
2 changed files with 3 additions and 3 deletions

2
.env
View File

@ -1,2 +1,2 @@
DATABASE_URL=mysql://root:Chenweijia113!@localhost/lottery DATABASE_URL=mysql://root:Chenweijia113!@localhost/lottery
version = "1.0.5" version = "1.0.6"

View File

@ -69,11 +69,11 @@ jobs:
run: | run: |
version=$(grep -E '^version' $VERSION_FILE | awk -F'"' '{print $2}') version=$(grep -E '^version' $VERSION_FILE | awk -F'"' '{print $2}')
msg="Build job: $REPO, version: v$version succeeded!!!" msg="Build job: $REPO, version: v$version succeeded!!!"
curl https://ding.airpig.cn/QfagvFa7u323xUS5yRbFR3/$msg curl https://ding.airpig.cn/QfagvFa7u323xUS5yRbFR3/"${msg// /%20}"
- name: Check if build job failed - name: Check if build job failed
if: needs.build.result == 'failure' if: needs.build.result == 'failure'
run: | run: |
version=$(grep -E '^version' $VERSION_FILE | awk -F'"' '{print $2}') version=$(grep -E '^version' $VERSION_FILE | awk -F'"' '{print $2}')
msg="Build job: $REPO, version: v$version failed!!! " msg="Build job: $REPO, version: v$version failed!!! "
curl https://ding.airpig.cn/QfagvFa7u323xUS5yRbFR3/$msg curl https://ding.airpig.cn/QfagvFa7u323xUS5yRbFR3/"${msg// /%20}"