Keepalive Workflow #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Keepalive Workflow | |
# If there haven't been any commits in the main/master branch in the last 60 days, | |
# Github will disable the workflows in the repository with the following error: | |
# | |
# "This scheduled workflow is disabled because there hasn't been activity in this repository | |
# for at least 60 days. Enable this workflow to resume scheduled runs." | |
on: | |
schedule: | |
- cron: '0 0 */15 * *' # run every fifteen days at midnight | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
keepalive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout NVD repo | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Keepalive commit | |
run: | | |
git config --global user.email "" | |
git config --global user.name "GitHub Actions Bot" | |
git commit --allow-empty -m 'Keepalive commit' | |
git push origin master |