Skip to content

Commit

Permalink
update formatting (#76)
Browse files Browse the repository at this point in the history
* update formatting

* cleanup shellcheck errors
  • Loading branch information
kernelsam authored Mar 14, 2024
1 parent 9dbe98c commit 354c17c
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 "%s\n" "${FIRST_LINE}"
printf "// Created by make-go-github-file.yaml on %s\n" "$(date)"
printf "//\n"
printf "//lint:file-ignore U1000 Ignore all unused code, it's generated\n"
printf "package %s\n" "${INPUT_PACKAGE}"
printf "\n"
printf "var (\n"
printf "\tgithubDate string = \"%s\"\n" "${RELEASE_DATE}"
printf "\tgithubIteration string = \"%s\"\n" "${RELEASE_ITERATION}"
printf "\tgithubRef string = \"refs/tags/%s\"\n" "${NEXT_VERSION}"
printf "\tgithubRefName string = \"%s\"\n" "${NEXT_VERSION}"
printf "\tgithubRepository string = \"%s\"\n" "${GITHUB_REPOSITORY}"
printf "\tgithubRepositoryName string = \"%s\"\n" "${RELEASE_REPOSITORY_NAME}"
printf "\tgithubVersion string = \"%s\"\n" "${NEXT_VERSION}"
printf ")\n"
} >> "${OUTFILE}"
}

Expand Down

0 comments on commit 354c17c

Please sign in to comment.