-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.yml
More file actions
34 lines (34 loc) · 987 Bytes
/
build.yml
File metadata and controls
34 lines (34 loc) · 987 Bytes
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
name: Update README
permissions:
contents: write
on:
push:
workflow_dispatch:
schedule:
- cron: '0 */8 * * *'
jobs:
update:
runs-on: 'ubuntu-latest'
steps:
- name: 'checkout repo'
uses: 'actions/checkout@v2'
- name: 'Set up python'
uses: 'actions/setup-python@v2'
with:
python-version: 3.8
architecture: x64
- name: 'Update README'
run: |-
ls
python updater.py
cat README.md
- name: 'Reset vote counts'
run: curl -v froggerapi.madavidcoder.hackclub.app/reset
- name: 'Commit and push'
run: |-
git diff
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "MadREADMEBot"
git add -A
git commit -m "Changed question" || exit 0
git push https://x-access-token:${GITHUB_TOKEN}@github.com/MadAvidCoder/MadAvidCoder.git HEAD:main