新增 SSH connection to Actions

This commit is contained in:
Hyy2001X 2021-01-11 21:44:20 +08:00
parent d73811e302
commit e838426ecd
1 changed files with 17 additions and 9 deletions

View File

@ -8,17 +8,18 @@
name: AutoBuild
on:
# release:
# types: [published]
# push:
# branches:
# - master
on:
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: true
default: 'false'
schedule:
- cron: 0 11 * * *
watch:
types: [started]
@ -78,6 +79,13 @@ jobs:
source $GITHUB_WORKSPACE/$DIY_SCRIPT
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
run: |
cd openwrt
@ -136,4 +144,4 @@ jobs:
if: env.REMOVE_WORKFLOW_RUNS == 'true' && !cancelled()
with:
retain_days: 1
keep_minimum_runs: 3
keep_minimum_runs: 3