Skip to content

Commit

Permalink
rubberstamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed May 13, 2024
1 parent 65664e3 commit 8311f1d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/rubberstamp.yml
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 \"[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 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 }}"

0 comments on commit 8311f1d

Please sign in to comment.