mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-27 15:24:45 +00:00
新增 SSH connection to Actions
This commit is contained in:
@@ -9,12 +9,13 @@
|
|||||||
name: AutoBuild
|
name: AutoBuild
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# release:
|
repository_dispatch:
|
||||||
# types: [published]
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
# push:
|
ssh:
|
||||||
# branches:
|
description: 'SSH connection to Actions'
|
||||||
# - master
|
required: true
|
||||||
|
default: 'false'
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 11 * * *
|
- cron: 0 11 * * *
|
||||||
@@ -78,6 +79,13 @@ jobs:
|
|||||||
source $GITHUB_WORKSPACE/$DIY_SCRIPT
|
source $GITHUB_WORKSPACE/$DIY_SCRIPT
|
||||||
source $GITHUB_WORKSPACE/$FUNCTION_SCRIPT && Diy-Part2
|
source $GITHUB_WORKSPACE/$FUNCTION_SCRIPT && Diy-Part2
|
||||||
|
|
||||||
|
- name: SSH connection to Actions
|
||||||
|
uses: P3TERX/ssh2actions@v1.0.0
|
||||||
|
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
|
||||||
|
env:
|
||||||
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
|
|
||||||
- name: Download Packages
|
- name: Download Packages
|
||||||
run: |
|
run: |
|
||||||
cd openwrt
|
cd openwrt
|
||||||
|
|||||||
Reference in New Issue
Block a user