Skip to content

Keep alive

Keep alive #854

Workflow file for this run

name: Keep alive
on:
schedule:
- cron: "0 0 * * *"
jobs:
keepalive:
runs-on: ubuntu-latest
if: github.repository == 'microsoft/TypeScript-Website'
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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