-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (27 loc) · 859 Bytes
/
codeql-update.yml
File metadata and controls
32 lines (27 loc) · 859 Bytes
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
name: Weekly CodeQL Update
on:
push:
branches:
- main
schedule:
- cron: '0 8 * * 4'
jobs:
update:
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
# Update references
- name: Git Sumbodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Commit update
run: |
git config --global user.name 'Git bot'
git config --global user.email 'bot@noreply.github.com'
git remote set-url origin https://${{ secrets.COMMIT_USERNAME }}:${{ secrets.ACTIONS_SECRET }}@github.com/${{ github.repository }}
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"