Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Schedule - Keepalive #67

Schedule - Keepalive

Schedule - Keepalive #67

---
name: Schedule - Keepalive
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
paths:
- ".github/workflows/scheduled-keepalive.yaml"
jobs:
keepalive:
name: Keep scheduled GitHub workflows alive
runs-on: ubuntu-latest
steps:
- name: Get GitHub API token
id: get-app-token
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.BJWS_APP_ID }}
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
- name: Checkout main branch
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
token: ${{ steps.get-app-token.outputs.token }}
- name: Keep scheduled GitHub workflows alive
uses: gautamkrishnar/keepalive-workflow@v1
with:
gh_token: ${{ steps.get-app-token.outputs.token }}
committer_username: "bjw-s-bot[bot]"
committer_email: "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>"