Profilerator 9000(tm) 🗑️ #43796
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: 'Profilerator 9000(tm) 🗑️' | |
# Run every hour on the hour | |
on: | |
schedule: | |
- cron: "*/45 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: main | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: 'Set up Python 3.x' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: 'Make trash commits' | |
run: | | |
git config --local user.email "[email protected]" # setup commit email | |
git config --local user.name "Dante Lanznaster" # setup commit name | |
python make_commits.py # actually make the commits | |
- name: 'Push changes' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: 'true' | |
branch: 'main' |