Keep alive #322
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 * * *" | |
jobs: | |
keepalive: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- run: | | |
if [[ $(git log --format="%H" --since "50 days" | head -c1 | wc -c) == 0 ]]; then | |
git config user.email "typescriptbot@microsoft.com" | |
git config user.name "TypeScript Bot" | |
git commit --allow-empty -m "Automated commit to keep GitHub Actions active" | |
git push | |
fi |