Update CI #117
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
name: Update CI | |
on: | |
schedule: | |
- cron: "0 1 * * 1" | |
push: | |
branches: [main] | |
repository_dispatch: | |
types: [update_ci] | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Update API | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js v12 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- name: Update notes summary | |
run: node update-data.mjs | |
- name: Commit and push | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ":card_file_box: Update data" | |
- name: Dispatch AnandChowdhary/everything update | |
uses: benc-uk/workflow-dispatch@v1.2.2 | |
with: | |
repo: AnandChowdhary/everything | |
workflow: api.yml | |
token: ${{ secrets.WORKFLOW_DISPATCH_TOKEN }} |