fix build update condition
This commit is contained in:
parent
05acafa10f
commit
66269d4895
|
|
@ -237,6 +237,7 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
- name: Check Build Update
|
- name: Check Build Update
|
||||||
|
if: env.Result == 'true' && env.Release == 'true' && env.UPLOAD_RELEASES == 'true' && !cancelled()
|
||||||
run: |
|
run: |
|
||||||
export NOW_DATA_VERSION=${{env.NOW_DATA_VERSION}}
|
export NOW_DATA_VERSION=${{env.NOW_DATA_VERSION}}
|
||||||
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
|
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,7 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
- name: Check Build Update
|
- name: Check Build Update
|
||||||
|
if: env.Result == 'true' && env.Release == 'true' && env.UPLOAD_RELEASES == 'true' && !cancelled()
|
||||||
run: |
|
run: |
|
||||||
export NOW_DATA_VERSION=${{env.NOW_DATA_VERSION}}
|
export NOW_DATA_VERSION=${{env.NOW_DATA_VERSION}}
|
||||||
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
|
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
|
||||||
|
|
|
||||||
|
|
@ -231,6 +231,7 @@ jobs:
|
||||||
[ "${build_status}" == 0 ] && echo "Result=true" >> $GITHUB_ENV || echo "Result=false" >> $GITHUB_ENV
|
[ "${build_status}" == 0 ] && echo "Result=true" >> $GITHUB_ENV || echo "Result=false" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Check Build Update
|
- name: Check Build Update
|
||||||
|
if: env.Result == 'true' && env.Release == 'true' && env.UPLOAD_RELEASES == 'true' && !cancelled()
|
||||||
run: |
|
run: |
|
||||||
export NOW_DATA_VERSION=${{env.NOW_DATA_VERSION}}
|
export NOW_DATA_VERSION=${{env.NOW_DATA_VERSION}}
|
||||||
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
|
export GITHUB_WORKSPACE=$GITHUB_WORKSPACE
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
# AI Modification Log: Build Update Condition
|
||||||
|
|
||||||
|
Date: 2026-06-29
|
||||||
|
|
||||||
|
## Change
|
||||||
|
|
||||||
|
- Added an `if` condition to the `Check Build Update` step in X/Y/Z workflows.
|
||||||
|
- The step now runs only when the build succeeded, release upload is enabled, and the workflow was not cancelled.
|
||||||
|
|
||||||
|
## Reason
|
||||||
|
|
||||||
|
The update checker depends on the build log and release metadata. Running it after a failed build or when release upload is disabled can cause unnecessary failures or remote API work.
|
||||||
Loading…
Reference in New Issue