Skip to content

Commit

Permalink
update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Mar 1, 2024
1 parent 9dbe98c commit a2c354a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ set -eu

write_file() {
{
echo "${FIRST_LINE}"
echo "// Created by make-go-github-file.yaml on $(date)"
echo "//"
echo "//lint:file-ignore U1000 Ignore all unused code, it's generated"
echo "package ${INPUT_PACKAGE}"
echo ""
echo "var ("
echo "\tgithubDate string = \"${RELEASE_DATE}\""
echo "\tgithubIteration string = \"${RELEASE_ITERATION}\""
echo "\tgithubRef string = \"refs/tags/${NEXT_VERSION}\""
echo "\tgithubRefName string = \"${NEXT_VERSION}\""
echo "\tgithubRepository string = \"${GITHUB_REPOSITORY}\""
echo "\tgithubRepositoryName string = \"${RELEASE_REPOSITORY_NAME}\""
echo "\tgithubVersion string = \"${NEXT_VERSION}\""
echo ")"
printf "${FIRST_LINE}\n"
printf "// Created by make-go-github-file.yaml on $(date)\n"
printf "//\n"
printf "//lint:file-ignore U1000 Ignore all unused code, it's generated\n"
printf "package ${INPUT_PACKAGE}\n"
printf "\n"
printf "var (\n"
printf "\tgithubDate string = \"${RELEASE_DATE}\"\n"
printf "\tgithubIteration string = \"${RELEASE_ITERATION}\"\n"
printf "\tgithubRef string = \"refs/tags/${NEXT_VERSION}\"\n"
printf "\tgithubRefName string = \"${NEXT_VERSION}\"\n"
printf "\tgithubRepository string = \"${GITHUB_REPOSITORY}\"\n"
printf "\tgithubRepositoryName string = \"${RELEASE_REPOSITORY_NAME}\"\n"
printf "\tgithubVersion string = \"${NEXT_VERSION}\"\n"
printf ")\n"
} >> "${OUTFILE}"
}

Expand Down

0 comments on commit a2c354a

Please sign in to comment.