GitHub Action
Reactivate Repository
v1.0.0
Latest version
GitHub action to prevent GitHub from suspending cronjob based triggers due to repository inactivity.
Thanks for letting us know! Please file an issue and we should reply shortly.
This action requires the presence of inputs, which are listed below.
commit_message
: Commit message used while committing to the repository. (optional)committer_username
: Username used while committing to the repository. (optional)committer_email
: Email used while committing to the repository. (optional)days_elapsed
: Time elapsed from the last commit to trigger a new automated commit (in days) (optional)
Below you will find an example of how you can use this action.
name: "Cronjob"
on:
schedule:
- cron: '0 0 * * *' # every day at midnight
permissions:
contents: "write" # required
jobs:
cronjob:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout Repository"
uses: "actions/checkout@v3"
- name: "Reactivate Repository"
uses: "custom-workflows/reactivate@latest"
with:
commit_message: "github-actions: Reactivate repository"
committer_username: "GitHub Actions [Bot]"
committer_email: "github-actions[bot]@users.noreply.github.com"
days_elapsed: 50