Skip to content

Commit

Permalink
Add autocommit action
Browse files Browse the repository at this point in the history
  • Loading branch information
imchairmanm authored Sep 20, 2023
1 parent 3f92453 commit bc312b7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/autocommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Keep Repository Active

on:
schedule:
- cron: '0 0 */28 * *'

jobs:
create-empty-commit:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main

- name: Configure Git
run: |
git config user.name 'Automatic action'
git config user.email 'noreply@koyeb.com'
- name: Create an empty commit and push
run: |
git commit --allow-empty -m "Automated empty commit to keep repo active" -m "This commit is generated automatically every few weeks to prevent GitHub Actions from being disabled due to inactivity."
git push origin main

0 comments on commit bc312b7

Please sign in to comment.