mirror of https://github.com/OpenIPC/firmware.git
Fix conditionals in actions
parent
b398a6c676
commit
35a8b8b74b
|
@ -155,8 +155,6 @@ jobs:
|
||||||
name: ${{ needs.toolchain.outputs.sdk-file }}
|
name: ${{ needs.toolchain.outputs.sdk-file }}
|
||||||
|
|
||||||
- name: Build firmware
|
- name: Build firmware
|
||||||
id: build-firmware
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
run: |
|
||||||
BOARD=unknown_unknown_${{ matrix.platform }}
|
BOARD=unknown_unknown_${{ matrix.platform }}
|
||||||
if [ "${{ matrix.release }}" != "lite" ]; then
|
if [ "${{ matrix.release }}" != "lite" ]; then
|
||||||
|
@ -216,11 +214,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }}
|
TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }}
|
||||||
TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }}
|
TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }}
|
||||||
if: ${{ !env.ACT }} && steps.build-firmware.outcome != 'success' && github.event_name != 'pull_request'
|
if: ${{ !env.ACT && failure() && github.event_name != 'pull_request' }}
|
||||||
run: |
|
run: |
|
||||||
echo ACT: ${{ !env.ACT }}
|
|
||||||
echo outcome: ${{ steps.build-firmware.outcome }}
|
|
||||||
echo event_name: ${{ github.event_name }}
|
|
||||||
TG_OPTIONS="-s --connect-timeout 30 --max-time 30"
|
TG_OPTIONS="-s --connect-timeout 30 --max-time 30"
|
||||||
TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... ${{ matrix.platform }} (${{ matrix.release }})}"
|
TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... ${{ matrix.platform }} (${{ matrix.release }})}"
|
||||||
TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions")
|
TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions")
|
||||||
|
@ -229,7 +224,7 @@ jobs:
|
||||||
exit 2
|
exit 2
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: ${{ !env.ACT }} && github.event_name != 'pull_request'
|
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
|
@ -241,7 +236,7 @@ jobs:
|
||||||
prerelease: ${{ env.PRERELEASE }}
|
prerelease: ${{ env.PRERELEASE }}
|
||||||
|
|
||||||
- name: Upload NOR FW to release
|
- name: Upload NOR FW to release
|
||||||
if: ${{ !env.ACT }} && github.event_name != 'pull_request'
|
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
|
@ -252,7 +247,7 @@ jobs:
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: Upload NAND FW to release
|
- name: Upload NAND FW to release
|
||||||
if: ${{ !env.ACT }} && ${{ env.HAS_NAND }} && github.event_name != 'pull_request'
|
if: ${{ !env.ACT && github.event_name != 'pull_request' && env.HAS_NAND }}
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
|
@ -263,7 +258,7 @@ jobs:
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: Send binary file to telegram channel
|
- name: Send binary file to telegram channel
|
||||||
if: ${{ !env.ACT }} && github.event_name != 'pull_request'
|
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
||||||
env:
|
env:
|
||||||
TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }}
|
TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }}
|
||||||
TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }}
|
TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }}
|
||||||
|
|
Loading…
Reference in New Issue