File tree Expand file tree Collapse file tree 2 files changed +34
-13
lines changed
Expand file tree Collapse file tree 2 files changed +34
-13
lines changed Original file line number Diff line number Diff line change 6060 uses : github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
6161 with :
6262 sarif_file : ' trivy-results.sarif'
63-
64- keepalive-job :
65- name : Keep repository alive to prevent workflows to be disabled
66- if : ${{ always() }}
67- needs : build_push_check
68- permissions :
69- actions : write # for gautamkrishnar/keepalive-workflow to keep the workflow alive
70- runs-on : ubuntu-latest
71- steps :
72- - name : Checkout repository
73- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
74- - name : Keep workflow alive
75- uses : gautamkrishnar/keepalive-workflow@2a8ae70f39b79fb50659d17ccc6f372f461813b2 # v2.0.10
Original file line number Diff line number Diff line change 1+ name : Keep Workflow Alive
2+ description : |
3+ This workflow is designed to keep the repository alive by making a dummy commit
4+ to the `keepalive` branch to make sure the GitHub workflow will continue to run.
5+ It runs on a weekly schedule and can also be triggered manually via the GitHub
6+ Actions UI.
7+
8+ on :
9+ schedule :
10+ - cron : ' 0 0 * * 0'
11+ workflow_dispatch :
12+
13+ jobs :
14+ keepalive :
15+ runs-on : ubuntu-latest
16+ permissions :
17+ contents : write # Required to push changes to the repository
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v4
21+
22+ - name : Set up Git
23+ run : |
24+ git config --global user.name "github-actions[bot]"
25+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
26+
27+ - name : Make dummy commit to keep workflow alive
28+ run : |
29+ git fetch origin keepalive
30+ git checkout keepalive
31+ echo "Last update from $(date -u)" > keepalive
32+ git add keepalive
33+ git commit -m "chore: keepalive" || echo "No changes to commit"
34+ git push origin keepalive
You can’t perform that action at this time.
0 commit comments