mirror of https://github.com/knative/pkg.git
set git user name/email prior to merging upstream (#2448)
This commit is contained in:
parent
fe26417344
commit
76a28b066d
|
|
@ -96,6 +96,12 @@ jobs:
|
|||
shell: bash
|
||||
working-directory: ./src/knative.dev/${{ github.event.repository.name }}
|
||||
run: |
|
||||
if ! git config user.name > /dev/null; then
|
||||
git config user.name "Knative Action"
|
||||
fi
|
||||
if ! git config user.email > /dev/null; then
|
||||
git config user.email "action@knative.dev"
|
||||
fi
|
||||
git remote add upstream https://github.com/${{ github.repository }}.git
|
||||
git fetch upstream ${{ github.base_ref }}
|
||||
git pull --no-rebase --no-commit upstream ${{ github.base_ref }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue