Skip to content

Commit

Permalink
fix step result judgment (P3TERX#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnawYang authored Jul 19, 2021
1 parent 8330db5 commit 97697df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:

- name: Upload bin directory
uses: actions/upload-artifact@main
if: steps.compile.conclusion.status == 'success' && env.UPLOAD_BIN_DIR == 'true'
if: steps.compile.conclusion == 'success' && env.UPLOAD_BIN_DIR == 'true'
with:
name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
path: openwrt/bin
Expand All @@ -130,14 +130,14 @@ jobs:
- name: Upload firmware directory
uses: actions/upload-artifact@main
if: steps.organize.conclusion.status == 'success' && !cancelled()
if: steps.organize.conclusion == 'success' && !cancelled()
with:
name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
path: ${{ env.FIRMWARE }}

- name: Upload firmware to cowtransfer
id: cowtransfer
if: steps.organize.conclusion.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
if: steps.organize.conclusion == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
run: |
curl -fsSL git.io/file-transfer | sh
./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log
Expand All @@ -146,7 +146,7 @@ jobs:
- name: Upload firmware to WeTransfer
id: wetransfer
if: steps.organize.conclusion.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled()
if: steps.organize.conclusion == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled()
run: |
curl -fsSL git.io/file-transfer | sh
./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log
Expand All @@ -164,7 +164,7 @@ jobs:
- name: Upload firmware to release
uses: softprops/action-gh-release@v1
if: steps.tag.conclusion.status == 'success' && !cancelled()
if: steps.tag.conclusion == 'success' && !cancelled()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 97697df

Please sign in to comment.