-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset.yml
More file actions
30 lines (30 loc) · 874 Bytes
/
reset.yml
File metadata and controls
30 lines (30 loc) · 874 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
name: 'Clear Image Cache'
permissions:
contents: write
on:
workflow_dispatch:
schedule:
- cron: '*/30 * * * *'
jobs:
reset:
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: 'Change README'
run: |-
python clearer.py
cat README.md
- 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 "Force Reset Badges" || exit 0
git push https://x-access-token:${GITHUB_TOKEN}@github.com/MadAvidCoder/MadAvidCoder.git HEAD:main