Skip to content

Instantly share code, notes, and snippets.

@archieedwards
Last active February 6, 2024 18:59
Show Gist options
  • Save archieedwards/1b8c553b7f99fcc27b97b8cd4a42cb5e to your computer and use it in GitHub Desktop.
Save archieedwards/1b8c553b7f99fcc27b97b8cd4a42cb5e to your computer and use it in GitHub Desktop.
name: Commit as rich person
on:
push:
branches:
- main
jobs:
commit:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Git
run: |
git config user.name "Rich person"
git config user.email "richperson@gmail.com"
- name: Commit Changes
run: |
git commit -m "Automated commit" --allow-empty
git push origin HEAD:main --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment