-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (39 loc) · 1.09 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
34
35
36
37
38
39
---
#
# Rubberstamp v0.0.2
# 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 * *"
workflow_dispatch:
jobs:
Audit:
runs-on: "ubuntu-24.04"
env:
RUBBERSTAMP_GH_REPO: "${{ github.repository }}"
SSH_KEY: "${{ secrets.SSH_KEY }}"
steps:
- uses: "actions/checkout@v4"
- name: "provision git"
run: |
sudo apt-get update
sudo apt-get install -y git
git config --global user.email '[email protected]'
git config --global user.name 'Rubberstamp'
git config --global core.sshCommand 'ssh -i /tmp/key'
echo "$SSH_KEY" >/tmp/key
chmod 0600 /tmp/key
git remote set-url origin "[email protected]:${RUBBERSTAMP_GH_REPO}.git"
- name: "stamp"
run: |
date -u >.rubberstamp
git add .rubberstamp
git commit -m 'rubberstamp'
git push