Skip to content

Commit

Permalink
Add keepalive workflow (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Oct 2, 2023
1 parent 8fe9416 commit 1c3e390
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Keep alive
on:
schedule:
- cron: "0 0 * * *"

jobs:
keepalive:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4
- run: |
if [[ $(git log --format="%H" --since "50 days" | head -c1 | wc -c) == 0 ]]; then
git config user.email "[email protected]"
git config user.name "TypeScript Bot"
git commit --allow-empty -m "Automated commit to keep GitHub Actions active"
git push
fi

0 comments on commit 1c3e390

Please sign in to comment.