Skip to content

Commit

Permalink
Merge pull request #45 from paigerube14/write_all
Browse files Browse the repository at this point in the history
Write all
  • Loading branch information
paigerube14 authored Jul 16, 2024
2 parents 15790c2 + d17de00 commit be01a0d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/auto_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,29 @@ on:
description: Only run tests that match the regular expression
default: ""
required: false
permissions: write-all

jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Check out code
uses: actions/checkout@main
with:
fetch-depth: 0
token: ${{ secrets.AutoPush }}
- name: Update README with current date/time
env:
GITHUB_TOKEN: ${{ secrets.AutoPush }}
run: |
current_date=$(date +"%H:%M %b %d %Y")
sed -i "s/[0-9]\{2\}:[0-9]\{2\} [A-Z][a-z]\{2\} [0-9]\{2\} [0-9]\{4\}/$current_date/g" README.md
git config --global user.name 'Auto User'
git config --global user.email '[email protected]'
git add README.md
- name: Commit and Push
env:
GITHUB_TOKEN: ${{ secrets.AutoPush }}
run: |
git commit -am "Automated readme update"
git push
git push origin HEAD

0 comments on commit be01a0d

Please sign in to comment.