Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update repo-dispatcher.yml #301

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions .github/workflows/Openwrt-AutoBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,6 @@ jobs:
echo "NOTICE=请分配不少于800M的存储容量" >> $GITHUB_ENV
fi

- name: Deploy files to server
uses: easingthemes/ssh-deploy@master
continue-on-error: true
if: env.SSH_PRIVATE_KEY && ! contains(github.event.action, 'noser')
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-avzr --exclude="
SOURCE: firmware/
REMOTE_HOST: op.supes.top
REMOTE_USER: root
TARGET: "/www/wwwroot/op.supes.top/firmware/${{matrix.target}}/"

- name: Upload firmware to cowtransfer
if: env.UPLOAD_FIRMWARE_TO_COWTRANSFER == 'true'
Expand Down Expand Up @@ -230,8 +219,7 @@ jobs:
continue-on-error: true
run: |
echo -e "墙内加速下载 🚀:\n" >> release.txt
echo -e "[腾讯云] (https://op.supes.top/firmware/${{matrix.target}}/ ☁)\n" >> release.txt
[ ${{ env.WETRANS }} ] && echo -e "[WeTransfer] (${{ env.WETRANS }} 🗽)\n" >> release.txt
[ ${{ env.WETRANS }} ] && echo -e "[WeTransfer] (${{ env.WETRANS }} 🗽)\n" >> release.txt
[ ${{ env.COWURL }} ] && echo -e "[奶牛上传] (${{ env.COWURL }} 🐮)\n" >> release.txt
[ ${{ env.NOTICE }} ] && echo -e "${{ env.NOTICE }}" >> release.txt || true

Expand Down Expand Up @@ -261,12 +249,6 @@ jobs:
run: |
[ steps.compile.outputs.status == 'success' ] && curl https://sc.ftqq.com/${{ secrets.SCKEY }}.send?text=🎉OpenWrt_${{ env.date3 }}_${{matrix.target}}编译完成😋|| curl https://sc.ftqq.com/${{ secrets.SCKEY }}.send?text=❌OpenWrt_${{ env.date3 }}_${{matrix.target}}编译失败😂

- name: Telegram notification
if: env.TELEGRAM_TOKEN && ! contains(github.event.action, 'notg')
continue-on-error: true
run: |
# [ steps.compile.outputs.status == 'success' ] && curl -k --data chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" --data "text=🎉 OpenWrt ${{ env.date3 }} ${{matrix.target}} 编译成功 😋 https://op.supes.top/firmware/${{matrix.target}}/ ${{ env.COWURL }} ${{ env.WETRANS }} 🚀" "https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage" || curl -k --data chat_id="${{ secrets.TELEGRAM_TO }}" --data "text=❌ OpenWrt ${{ env.date3 }} ${{matrix.target}} 编译失败 😂" "https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage"

- name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
-X POST https://api.github.com/repos/${{ github.actor }}/${{ github.event.repository.name }}/dispatches \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
-d '{"event_type": "phicomm-k2p ${{ env.SSH }}", "client_payload": {"target": "phicomm-k2p"}}'
-d '{"event_type": "newifi-d2 ${{ env.SSH }}", "client_payload": {"target": "newifi-d2"}}'

- name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main
Expand Down
4 changes: 2 additions & 2 deletions onekey/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi


rm -Rf openwrt
git clone -b master --depth 1 https://github.com/openwrt/openwrt
git clone -b master --depth 1 https://github.com/coolsnowwolf/lede
svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
cd openwrt
echo "
Expand Down Expand Up @@ -167,4 +167,4 @@ echo "
初始用户名密码: root root

"
fi
fi