Skip to content

Commit

Permalink
Added author init, moved commiter init to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Aug 16, 2024
1 parent 28d0b2e commit ab58b1e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/sync-chatgpt.js-changes-to-chrome-starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
build:
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
runs-on: ubuntu-latest
env:
GIT_AUTHOR_NAME: ${{ github.event.commits[0].author.name }}
GIT_AUTHOR_EMAIL: ${{ github.event.commits[0].author.email }}
GIT_COMMITTER_NAME: kudo-sync-bot
GIT_COMMITTER_EMAIL: [email protected]

steps:
- name: Checkout KudoAI/chatgpt.js
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,17 +57,13 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js
git config --global user.name "kudo-sync-bot"
git config --global user.email "[email protected]"
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from \`KudoAI/chatgpt.js\`]" || true
git push
- name: Push changes to KudoAI/chatgpt.js-chrome-starter
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js-chrome-starter
git config --global user.name "kudo-sync-bot"
git config --global user.email "[email protected]"
git add .
git commit -n -m "$ESCAPED_MSG↞ [auto-sync from \`KudoAI/chatgpt.js\`]" || true
git push
8 changes: 6 additions & 2 deletions .github/workflows/sync-chrome-starter-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
build:
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
runs-on: ubuntu-latest
env:
GIT_AUTHOR_NAME: ${{ github.event.commits[0].author.name }}
GIT_AUTHOR_EMAIL: ${{ github.event.commits[0].author.email }}
GIT_COMMITTER_NAME: kudo-sync-bot
GIT_COMMITTER_EMAIL: [email protected]

steps:

- name: Checkout KudoAI/chatgpt.js
Expand Down Expand Up @@ -40,8 +46,6 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js-chrome-starter
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js-chrome-starter
git config --global user.name "kudo-sync-bot"
git config --global user.email "[email protected]"
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from \`KudoAI/chatgpt.js\`]" || true
git push
8 changes: 6 additions & 2 deletions .github/workflows/sync-en-readme-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
build:
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
runs-on: ubuntu-latest
env:
GIT_AUTHOR_NAME: ${{ github.event.commits[0].author.name }}
GIT_AUTHOR_EMAIL: ${{ github.event.commits[0].author.email }}
GIT_COMMITTER_NAME: kudo-sync-bot
GIT_COMMITTER_EMAIL: [email protected]

steps:
- name: Checkout KudoAI/chatgpt.js
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,8 +47,6 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js
git config --global user.name "kudo-sync-bot"
git config --global user.email "[email protected]"
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from \`${{ steps.sync_readmes.outputs.sync_src }}\`]" || true
git push
8 changes: 6 additions & 2 deletions .github/workflows/sync-greasemonkey-starter-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
build:
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
runs-on: ubuntu-latest
env:
GIT_AUTHOR_NAME: ${{ github.event.commits[0].author.name }}
GIT_AUTHOR_EMAIL: ${{ github.event.commits[0].author.email }}
GIT_COMMITTER_NAME: kudo-sync-bot
GIT_COMMITTER_EMAIL: [email protected]

steps:

- name: Checkout KudoAI/chatgpt.js
Expand Down Expand Up @@ -40,8 +46,6 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js-greasemonkey-starter
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js-greasemonkey-starter
git config --global user.name "kudo-sync-bot"
git config --global user.email "[email protected]"
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from \`KudoAI/chatgpt.js\`]" || true
git push

0 comments on commit ab58b1e

Please sign in to comment.