-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from paigerube14/write_all
Write all
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 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 |
---|---|---|
|
@@ -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 |