Update App Versions, run by GitHub Actions - Apps updated: (#2452) #858
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"}' | |