Skip to content

Commit

Permalink
Create commits-preserve.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yugaa22 authored Aug 9, 2023
1 parent b69aec3 commit b3aa4c4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/commits-preserve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update README with Commit


on:
push:
branches:
- v6.55.3-1.28.4
paths-ignore:
- "*.md"

pull_request:
branches:
- v6.55.3-1.28.4
types:
- "closed"
paths-ignore:
- "*.md"


jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update README
run: |
echo -e "\n\n" >> README.md
git log -1 --pretty=format:"$(git rev-parse HEAD) | %an | %s | %ad " --date=short >> README.md
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "Updating README with brief commit details"
git push

0 comments on commit b3aa4c4

Please sign in to comment.