vtk-m/.gitlab/ci/config/ecpci-amend-commit.sh
Vicente Adolfo Bolea Sanchez 6255225863 CI: Generate a tmp commit for Ascent build
- Print out the ECP Pipeline url.
2022-11-01 18:03:03 -04:00

15 lines
354 B
Bash
Executable File

#!/bin/bash -e
# shellcheck disable=SC2155
git rev-parse @ > ./ORIGINAL_COMMIT_SHA
git add ./ORIGINAL_COMMIT_SHA
readonly name="$(git show --quiet --format='%cn')"
readonly email="$(git show --quiet --format='%ce')"
git config --global user.name "$name"
git config --global user.email "$email"
git commit --amend --no-edit -a
git rev-parse @ > "$1"