Keep alive #6
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: Keep alive | |
on: | |
schedule: | |
- cron: 0 0 1 * * # Once every month | |
workflow_dispatch: | |
env: | |
GIT_USERNAME: "Exercism Bot" | |
GIT_EMAIL: "[email protected]" | |
jobs: | |
keep_alive: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
token: ${{ secrets.PAT_EMPTY_COMMITS }} | |
fetch-depth: 0 | |
- name: Configure the git user | |
run: | | |
git config --global user.email "$GIT_EMAIL" | |
git config --global user.name "$GIT_USERNAME" | |
- name: Create and push an empty commit | |
run: | | |
git commit --allow-empty -m "Empty commit" | |
git push origin main |