aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-04-12 19:55:10 +0200
committerEgor Tensin <egor@tensin.name>2026-04-12 19:55:10 +0200
commit254049b742aa14867e9d1d23d389cdec6f3e5a66 (patch)
tree4fcc7f501b23a620655d64afbc2ea70abce2ce4f /.github/workflows
parentbump dependencies (diff)
downloadjekyll-theme-254049b742aa14867e9d1d23d389cdec6f3e5a66.tar.gz
jekyll-theme-254049b742aa14867e9d1d23d389cdec6f3e5a66.zip
workflows: add a maintenance workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/maintenance.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml
new file mode 100644
index 0000000..b35a4eb
--- /dev/null
+++ b/.github/workflows/maintenance.yml
@@ -0,0 +1,31 @@
+name: Maintenance
+
+on:
+ schedule:
+ # Weekly, at 02:30 UTC on Friday (somewhat randomly chosen).
+ - cron: '30 02 * * 5'
+ workflow_dispatch:
+
+jobs:
+ maintenance:
+ runs-on: ubuntu-latest
+ name: Maintenance
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+ with:
+ # I think that by default, pushes don't trigger other workflows, and
+ # you need a separate token for that: https://github.com/orgs/community/discussions/37103
+ token: '${{ secrets.GH_TOKEN }}'
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ bundler-cache: true
+ - name: Run maintenance
+ id: maintenance
+ run: |
+ # See https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
+ git config user.name "github-actions[bot]"
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+
+ make maintenance