Skip to content

Commit

Permalink
feat: show what docker commands are used
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Aug 28, 2023
1 parent 1a07088 commit 2f83799
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -eo pipefail

run() {
echo -e "\033[1;34m$@\033[0m"
"$@"
}

error() {
echo "::error :: $1"
exit 1
Expand Down Expand Up @@ -36,7 +41,7 @@ if [[ -z "$docker_image" ]]; then
docker_image="ghcr.io/xu-cheng/texlive-full:$image_version"
fi

docker run --rm \
run docker run --rm \
-e "TEXINPUTS" \
-e "HOME" \
-e "GITHUB_JOB" \
Expand Down

0 comments on commit 2f83799

Please sign in to comment.