Skip to content

Commit

Permalink
Add committer details
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff committed Oct 5, 2024
1 parent 1e6ebd5 commit 7d3ba00
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/update-seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ jobs:
echo "Current branch: $BRANCH_NAME"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Get the user details from the commit
run: |
cd ./ocd
AUTHOR_EMAIL=$(git log -1 --pretty=format:'%ae')
AUTHOR_NAME=$(git log -1 --pretty=format:'%an')
echo "AUTHOR_EMAIL=$AUTHOR_EMAIL" >> $GITHUB_ENV
echo "AUTHOR_NAME=$AUTHOR_NAME" >> $GITHUB_ENV
- name: Create or update branch on Coinection
run: |
Expand Down Expand Up @@ -73,6 +83,9 @@ jobs:
- name: Commit and push changes to Coinection
run: |
cd ./coinection
git config --global user.email $AUTHOR_EMAIL
git config --global user.name $AUTHOR_NAME
git add .
git commit -m "Update seed data"
Expand Down

0 comments on commit 7d3ba00

Please sign in to comment.