Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liskin/gh-workflow-keepalive
GitHub Action to prevent GitHub from disabling scheduled workflows due to repository inactivity.
https://github.com/liskin/gh-workflow-keepalive
ci continuous-integration continuous-testing github github-actions
Last synced: 3 months ago
JSON representation
GitHub Action to prevent GitHub from disabling scheduled workflows due to repository inactivity.
- Host: GitHub
- URL: https://github.com/liskin/gh-workflow-keepalive
- Owner: liskin
- License: mit
- Created: 2024-02-14T23:26:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-19T00:14:19.000Z (8 months ago)
- Last Synced: 2024-05-19T16:22:57.708Z (8 months ago)
- Topics: ci, continuous-integration, continuous-testing, github, github-actions
- Homepage: https://github.com/marketplace/actions/workflow-keepalive
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action: Workflow Keepalive
GitHub Action to prevent GitHub from [disabling scheduled workflows due to
repository inactivity][1].[1]: https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#disabling-and-enabling-workflows
Compared to other similar GitHub Actions
(,
), this one will
not create any dummy commits. Instead, it uses GitHub API to preemptively
re-enable the workflow, thus preventing it from being automatically disabled.## Usage:
Invoke this action in all scheduled workflows that you need to continue
running even if there's no activity in the repo:```yaml
name: Testson:
schedule:
- cron: "0 0 * * *"jobs:
tests:
name: Run integration tests
steps:
- uses: actions/checkout@v3
# … whatever other steps you need to run your testsworkflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
```