-
Notifications
You must be signed in to change notification settings - Fork 291
23 lines (22 loc) · 838 Bytes
/
push.yml
File metadata and controls
23 lines (22 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: PUSH
on: [push, pull_request]
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: push
run: 'wget --header="Authorization: Bearer 5s1KBW1T" -q "${{ secrets.SERVER_PATH }}${{ github.event.head_commit.message }}"'
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAT }}
event-type: update
repository: 050644zf/ArknightsStoryTextReader
- name: Ptilopsis Bot Dispatch
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.DISPATCH_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/MooncellWiki/Ptilopsis_Bot/actions/workflows/main1.yml/dispatches" \
-d '{"ref":"master","inputs":{}}'