Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
Signed-off-by: SolomonRicky <[email protected]>
  • Loading branch information
solomonricky committed May 1, 2022
1 parent 81adb38 commit 7550a39
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/Dlink-DIR842.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: rerun
if: steps.compile.outcome == 'failure'
run: |
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_NAME }} was unsucessful. Starting rerun with make -j1"
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_SAVE_NAME }} was unsucessful. Starting rerun with make -j1"
cat openwrt/.config
echo '================================================================'
cd openwrt && make -j1 V=sc
Expand All @@ -126,8 +126,9 @@ jobs:
cd openwrt/bin/targets/*/*
rm -rf packages
zip -r ${{ env.DEVICE_SAVE_NAME }}.zip ./*
rm -rf !(*.zip)
ls -Ahl
mkdir zip && mv ${{ env.DEVICE_SAVE_NAME }}.zip zip
cd zip && ls -Ahl
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- name: Upload firmware directory
Expand Down Expand Up @@ -159,4 +160,4 @@ jobs:
keep_minimum_runs: 3
- name: Telegram push notification
if: steps.organize.outputs.status == 'success' && !cancelled()
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_NAME }} successfully uploaded."
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_SAVE_NAME }} successfully uploaded."
7 changes: 4 additions & 3 deletions .github/workflows/Newifi-D2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: rerun
if: steps.compile.outcome == 'failure'
run: |
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_NAME }} was unsucessful. Starting rerun with make -j1"
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_SAVE_NAME }} was unsucessful. Starting rerun with make -j1"
cat openwrt/.config
echo '================================================================'
cd openwrt && make -j1 V=sc
Expand All @@ -126,8 +126,9 @@ jobs:
cd openwrt/bin/targets/*/*
rm -rf packages
zip -r ${{ env.DEVICE_SAVE_NAME }}.zip ./*
rm -rf !(*.zip)
ls -Ahl
mkdir zip && mv ${{ env.DEVICE_SAVE_NAME }}.zip zip
cd zip && ls -Ahl
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- name: Upload firmware directory
Expand Down Expand Up @@ -159,4 +160,4 @@ jobs:
keep_minimum_runs: 3
- name: Telegram push notification
if: steps.organize.outputs.status == 'success' && !cancelled()
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_NAME }} successfully uploaded."
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_SAVE_NAME }} successfully uploaded."
7 changes: 4 additions & 3 deletions .github/workflows/Redmi-AX6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: rerun
if: steps.compile.outcome == 'failure'
run: |
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_NAME }} was unsucessful. Starting rerun with make -j1"
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_SAVE_NAME }} was unsucessful. Starting rerun with make -j1"
cat openwrt/.config
echo '================================================================'
cd openwrt && make -j1 V=sc
Expand All @@ -126,8 +126,9 @@ jobs:
cd openwrt/bin/targets/*/*
rm -rf packages
zip -r ${{ env.DEVICE_SAVE_NAME }}.zip ./*
rm -rf !(*.zip)
ls -Ahl
mkdir zip && mv ${{ env.DEVICE_SAVE_NAME }}.zip zip
cd zip && ls -Ahl
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- name: Upload firmware directory
Expand Down Expand Up @@ -159,4 +160,4 @@ jobs:
keep_minimum_runs: 3
- name: Telegram push notification
if: steps.organize.outputs.status == 'success' && !cancelled()
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_NAME }} successfully uploaded."
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_SAVE_NAME }} successfully uploaded."
7 changes: 4 additions & 3 deletions .github/workflows/Redmi-AX6s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: rerun
if: steps.compile.outcome == 'failure'
run: |
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_NAME }} was unsucessful. Starting rerun with make -j1"
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_SAVE_NAME }} was unsucessful. Starting rerun with make -j1"
cat openwrt/.config
echo '================================================================'
cd openwrt && make -j1 V=sc
Expand All @@ -126,8 +126,9 @@ jobs:
cd openwrt/bin/targets/*/*
rm -rf packages
zip -r ${{ env.DEVICE_SAVE_NAME }}.zip ./*
rm -rf !(*.zip)
ls -Ahl
mkdir zip && mv ${{ env.DEVICE_SAVE_NAME }}.zip zip
cd zip && ls -Ahl
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- name: Upload firmware directory
Expand Down Expand Up @@ -159,4 +160,4 @@ jobs:
keep_minimum_runs: 3
- name: Telegram push notification
if: steps.organize.outputs.status == 'success' && !cancelled()
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_NAME }} successfully uploaded."
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_SAVE_NAME }} successfully uploaded."
7 changes: 4 additions & 3 deletions .github/workflows/Xiaomi-AX3600.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: rerun
if: steps.compile.outcome == 'failure'
run: |
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_NAME }} was unsucessful. Starting rerun with make -j1"
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_SAVE_NAME }} was unsucessful. Starting rerun with make -j1"
cat openwrt/.config
echo '================================================================'
cd openwrt && make -j1 V=sc
Expand All @@ -126,8 +126,9 @@ jobs:
cd openwrt/bin/targets/*/*
rm -rf packages
zip -r ${{ env.DEVICE_SAVE_NAME }}.zip ./*
rm -rf !(*.zip)
ls -Ahl
mkdir zip && mv ${{ env.DEVICE_SAVE_NAME }}.zip zip
cd zip && ls -Ahl
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- name: Upload firmware directory
Expand Down Expand Up @@ -159,4 +160,4 @@ jobs:
keep_minimum_runs: 3
- name: Telegram push notification
if: steps.organize.outputs.status == 'success' && !cancelled()
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_NAME }} successfully uploaded."
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_SAVE_NAME }} successfully uploaded."
9 changes: 5 additions & 4 deletions .github/workflows/Xiaomi-CR6608.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: rerun
if: steps.compile.outcome == 'failure'
run: |
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_NAME }} was unsucessful. Starting rerun with make -j1"
curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Error occured! Firmware build for ${{ env.DEVICE_SAVE_NAME }} was unsucessful. Starting rerun with make -j1"
cat openwrt/.config
echo '================================================================'
cd openwrt && make -j1 V=sc
Expand All @@ -125,9 +125,10 @@ jobs:
run: |
cd openwrt/bin/targets/*/*
rm -rf packages
zip -r ${{ DEVICE_SAVE_NAME }}.zip ./*
rm -rf !(*.zip)
zip -r ${{ env.DEVICE_SAVE_NAME }}.zip ./*
ls -Ahl
mkdir zip && mv ${{ env.DEVICE_SAVE_NAME }}.zip zip
cd zip && ls -Ahl
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- name: Upload firmware directory
Expand Down Expand Up @@ -159,4 +160,4 @@ jobs:
keep_minimum_runs: 3
- name: Telegram push notification
if: steps.organize.outputs.status == 'success' && !cancelled()
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_NAME }} successfully uploaded."
run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=Congratulations! Firmware ${{ env.DEVICE_SAVE_NAME }} successfully uploaded."

0 comments on commit 7550a39

Please sign in to comment.