fix s3 upload conditions

This commit is contained in:
xopenwrt 2026-06-29 20:53:12 +08:00
parent db2c0eb598
commit 2c1f06e0f2
4 changed files with 26 additions and 0 deletions

View File

@ -315,6 +315,7 @@ jobs:
- name: 1 Upload SP_UEFI_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_UEFI_IMG_GZ }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -324,6 +325,7 @@ jobs:
- name: 2 Upload SP_UEFI_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_UEFI_VMDK }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -333,6 +335,7 @@ jobs:
- name: 5 Upload SP_LEGACY_IMG_GZ to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_LEGACY_IMG_GZ }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -342,6 +345,7 @@ jobs:
- name: 6 Upload SP_LEGACY_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_LEGACY_VMDK }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'

View File

@ -310,6 +310,7 @@ jobs:
- name: 1 Upload SP_UEFI_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_UEFI_IMG_GZ }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -319,6 +320,7 @@ jobs:
- name: 2 Upload SP_UEFI_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_UEFI_VMDK }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -328,6 +330,7 @@ jobs:
- name: 5 Upload SP_LEGACY_IMG_GZ to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_LEGACY_IMG_GZ }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -337,6 +340,7 @@ jobs:
- name: 6 Upload SP_LEGACY_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_LEGACY_VMDK }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'

View File

@ -309,6 +309,7 @@ jobs:
- name: 1 Upload SP_UEFI_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_UEFI_IMG_GZ }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -318,6 +319,7 @@ jobs:
- name: 2 Upload SP_UEFI_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_UEFI_VMDK }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -349,6 +351,7 @@ jobs:
- name: 5 Upload SP_LEGACY_IMG_GZ to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_LEGACY_IMG_GZ }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'
@ -358,6 +361,7 @@ jobs:
- name: 6 Upload SP_LEGACY_VMDK to SharePoint
uses: xopenwrt/s3-upload-github-action@master
if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()
env:
FILE: ./${{ steps.date.outputs.date }}/${{ env.SP_LEGACY_VMDK }}
S3_ENDPOINT: 's3.openwrt.115115.xyz'

View File

@ -0,0 +1,14 @@
# AI Modification Log: S3 Upload Conditions
Date: 2026-06-29
## Change
- Added `if: env.SharePoint == 'true' && env.Result == 'true' && !cancelled()` to enabled S3 upload steps in:
- `.github/workflows/X-x86_64_X.yml`
- `.github/workflows/X-x86_64_Y.yml`
- `.github/workflows/X-x86_64_Z.yml`
## Reason
The S3 upload steps used the SharePoint/S3 upload path but did not honor the `SharePoint` input or the build `Result`. The new condition prevents uploads when SharePoint upload is disabled, the build failed, or the workflow was cancelled.