-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Pennebaker
committed
May 13, 2024
1 parent
f8f17ab
commit 84e5472
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
# | ||
# Rubberstamp | ||
# https://github.com/mcandre/rubberstamp | ||
# | ||
name: "Rubberstamp" | ||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
# Once every 15 minutes | ||
# - cron: "*/15 * * * *" | ||
# 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 \"git@github.com:${RUBBERSTAMP_GH_REPO}.git\"" | ||
env: | ||
RUBBERSTAMP_GH_REPO: "${{ github.repository }}" | ||
- run: "git remote get-url origin" | ||
- run: "git config --global user.email 'rubberstamp@rubberstamp.test'" | ||
- run: "git config --global user.name '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 }}" |