Skip to content

Commit

Permalink
Slight refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Feb 19, 2025
1 parent 07b387c commit 27b103d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .ci/retrofit-worktree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ fi
WORKTREE_NAME="$1"
WORKTREE_DIRECTORY="$2"

export GIT_AUTHOR_NAME="ci-sage workflow"
export GIT_AUTHOR_EMAIL="[email protected]"
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"

set -e

# Set globally for other parts of the workflow
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"

set -x
set -ex

# If actions/checkout downloaded our source tree (in current directory) using the
# GitHub REST API instead of with git, we first make the source tree a repo.
Expand Down
6 changes: 6 additions & 0 deletions .ci/write-dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ FROM with-system-packages AS bootstrapped
RUN rm -rf /source-tree
$ADD . /source-tree
RUN <<EOT
export GIT_AUTHOR_NAME="ci-sage workflow"
export GIT_AUTHOR_EMAIL="[email protected]"
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
rm -rf /source-tree/.git
if [ -d /sage ]; then
BASE_VERSION=\$(cat /sage/VERSION.txt)
Expand Down

0 comments on commit 27b103d

Please sign in to comment.