Keepalive #21
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: Keepalive | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
keepalive: | |
name: Keepalive | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name ${GITHUB_ACTOR} | |
git config user.email ${GITHUB_ACTOR}@users.noreply.github.com | |
- name: Add keepalive commit | |
run: | | |
touch .keepalive | |
git add .keepalive | |
git commit -m 'keepalive commit' | |
git push | |
- name: Remove keepalive commit | |
run: | | |
git reset --hard HEAD^ | |
git push -f |