Skip to content

Commit 1d906a3

Browse files
committed
Updated action
1 parent 74531ff commit 1d906a3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ runs:
5959
path: "fork-repo"
6060
token: "${{ env.GITHUB_TOKEN }}"
6161

62-
- name: Configure Git
63-
shell: bash
64-
run: |
65-
git config user.name "${{ inputs.user-name }}"
66-
git config user.email "${{ inputs.user-email }}"
67-
6862
- name: Upstream PR
6963
shell: bash
7064
env:
@@ -74,7 +68,9 @@ runs:
7468
ROOT_DIR=$(pwd)
7569
cd "fork-repo"
7670
77-
echo "🚀 Setting up upstream"
71+
echo "🚀 Setting up fork repo"
72+
git config user.name "${{ inputs.user-name }}"
73+
git config user.email "${{ inputs.user-email }}"
7874
git remote add upstream "https://github.com/${{ inputs.upstream-repo-name }}"
7975
git fetch --all
8076
git reset --hard upstream/main

0 commit comments

Comments
 (0)