-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (30 loc) · 982 Bytes
/
keep-alive.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Keep workflows alive
on:
# Run on the first of each month at 1:23 UTC
schedule:
- cron: '23 1 1 * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Create a minimal payload
run: |
mkdir _pass
touch _pass/pass.txt
- name: Keep workflow alive
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e #v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: keep-alive
publish_dir: _pass
enable_jekyll: true # avoid extra files
force_orphan: true # overwirte
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Keep repo GitHub Actions alive