-
Notifications
You must be signed in to change notification settings - Fork 209
44 lines (37 loc) · 1.66 KB
/
update_wiki.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This is a basic workflow to help you get started with Actions
name: Update_Wiki_Scripts
# Controls when the workflow will run
on:
# triggers the action when megascript_apps.txt file is updated
push:
branches:
- master
paths:
- 'etc/categories'
- 'apps/**/install'
- 'apps/**/install-32'
- 'apps/**/install-64'
- 'apps/**/description'
- 'apps/**/credits'
- 'apps/**/website'
- '.github/workflows/update-wiki.sh'
- '.github/workflows/update_wiki.yml'
# run at 4:00 UTC every day
schedule:
- cron: '0 4 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
update-wiki:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: "Trigger analytics repo actions"
run: |
curl -XPOST -u "Botspot:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/Botspot/pi-apps-analytics/dispatches --data '{"event_type": "update analytics"}'
- name: "Trigger website repo actions"
run: |
curl -XPOST -u "Botspot:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/Pi-Apps-Coders/website/dispatches --data '{"event_type": "update applist"}'