-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (33 loc) · 1.06 KB
/
rubberstamp.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
---
#
# Rubberstamp
# https://github.com/mcandre/rubberstamp
#
name: "Rubberstamp"
on: # yamllint disable-line rule:truthy
# POSIX cron format
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html
schedule:
# Once every 5 minutes
# - cron: "*/5 * * * *"
# Once a month
- cron: "0 0 1 * *"
jobs:
Audit:
runs-on: "ubuntu-22.04"
steps:
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y git"
- run: "date -u >.rubberstamp"
- run: "git remote set-url origin \"[email protected]:${RUBBERSTAMP_GH_REPO}.git\""
env:
RUBBERSTAMP_GH_REPO: "${{ github.repository }}"
- run: "git remote get-url origin"
- run: "git config --global user.email '[email protected]'"
- run: "git config --global user.name 'Rubberstamp'"
- run: "git add .rubberstamp"
- run: "git commit -am 'rubberstamp'"
- run: "echo \"$SSH_KEY\" >/tmp/key && chmod 0600 /tmp/key && git -c 'core.sshCommand=ssh -i /tmp/key' push"
env:
SSH_KEY: "${{ secrets.SSH_KEY }}"