Create schedule-trigger.yml

This commit is contained in:
gentlyxu 2021-06-06 07:44:36 +08:00 committed by GitHub
parent 8b8c044a67
commit ce253a2c97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
.github/workflows/schedule-trigger.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: schedule trigger
on:
schedule:
- cron: '30 18 */3 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run a multi-line script
run: |
curl -s -m 30 -X POST "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/workflows/download-upstream.yml/dispatches" -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ secrets.PERSON_TOKEN }}" -d '{"ref":"adlist-maker"}'