This repository was archived by the owner on Feb 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 echo '::error:: Should not be able to be checked out, when ACT environment is exists'
7979 exit 1
8080 fi
81+
82+ - name : Test Write author to .git/config
83+ uses : ./
84+ with :
85+ depth : ' '
86+ checkout_dir : step6
87+
88+ - name : Have user.name and user.email on .git/config?
89+ run : |
90+ set -xe
91+ pwd
92+ ls -al
93+ pushd step6
94+ if [ "${GITHUB_ACTOR}" != "$(git config --local --get user.name)" ]; then
95+ echo '::error:: "git config --local --get user.name" Should be equal' "$GITHUB_ACTOR"
96+ exit 1
97+ fi
98+ if [ "${GITHUB_ACTOR}@users.noreply.github.com" != "$(git config --local --get user.email)" ]; then
99+ echo '::error:: "git config --local --get user.email" Should be equal' "$GITHUB_ACTOR@users.noreply.github.com"
100+ exit 1
101+ fi
102+ popd
Original file line number Diff line number Diff line change 4242 run : |
4343 set -xe
4444
45- /usr/bin/git config --global gc.auto 0
46-
47- /usr/bin/git config --global user.name "${GITHUB_ACTOR}"
48- /usr/bin/git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
49-
5045 export __SHA=${{ inputs.sha || github.sha }}
5146 if [ ! -z "${{ inputs.branch_name }}" ]; then
5247 # Remove "refs/heads/" at head if exists it
8176 /usr/bin/git fetch $DEPTH origin $__SHA
8277 /usr/bin/git reset --hard FETCH_HEAD
8378 fi
79+
80+ /usr/bin/git config --local gc.auto 0
81+
82+ /usr/bin/git config --local user.name "${GITHUB_ACTOR}"
83+ /usr/bin/git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
8484 popd
8585
8686 unset GIT_LFS_SKIP_SMUDGE
You can’t perform that action at this time.
0 commit comments