Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,3 @@ jobs:
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
with:
sarif_file: 'trivy-results.sarif'

keepalive-job:
name: Keep repository alive to prevent workflows to be disabled
if: ${{ always() }}
needs: build_push_check
permissions:
actions: write # for gautamkrishnar/keepalive-workflow to keep the workflow alive
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Keep workflow alive
uses: gautamkrishnar/keepalive-workflow@2a8ae70f39b79fb50659d17ccc6f372f461813b2 # v2.0.10
34 changes: 34 additions & 0 deletions .github/workflows/keep-alive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Keep Workflow Alive
description: |
This workflow is designed to keep the repository alive by making a dummy commit
to the `keepalive` branch to make sure the GitHub workflow will continue to run.
It runs on a weekly schedule and can also be triggered manually via the GitHub
Actions UI.

on:
schedule:
- cron: '0 0 * * 0'
Comment thread
bric3 marked this conversation as resolved.
workflow_dispatch:

jobs:
keepalive:
runs-on: ubuntu-latest
permissions:
contents: write # Required to push changes to the repository
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Make dummy commit to keep workflow alive
run: |
git fetch origin keepalive
git checkout keepalive
echo "Last update from $(date -u)" > keepalive
git add keepalive
git commit -m "chore: keepalive" || echo "No changes to commit"
git push origin keepalive