Skip to content

Commit

Permalink
Create an empty commit to trigger activity (#161)
Browse files Browse the repository at this point in the history
ErikSchierboom authored Oct 31, 2023
1 parent fcba147 commit 011e1be
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/keep-alive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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:
path: main

- name: Configure the git user
if: steps.changes.outputs.changes == 'true'
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

0 comments on commit 011e1be

Please sign in to comment.