From 51d4ef13e7bfaa37eabf17b0cd6584d32815a4ad Mon Sep 17 00:00:00 2001 From: IA Automator Date: Sun, 29 Sep 2024 16:21:37 +0000 Subject: [PATCH 1/2] (automated) Updates from project type --- .copier-answers.yml | 4 ++-- .project_automation/publication/entrypoint.sh | 15 +++++++++++++++ .project_config.yml | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index bdc9e91..b783992 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,6 +1,6 @@ # This file is auto-generated, changes will be overwritten -_commit: v0.1.4 -_src_path: /task/8d381655-afe4-11ee-9151-2a3fbdb411a6/projecttype +_commit: v1.0.0 +_src_path: /task/d6acae9a-7e7e-11ef-8db1-5e92f42343b6/projecttype starting_version: v0.0.0 version_file: VERSION diff --git a/.project_automation/publication/entrypoint.sh b/.project_automation/publication/entrypoint.sh index 67e5c65..b11e854 100755 --- a/.project_automation/publication/entrypoint.sh +++ b/.project_automation/publication/entrypoint.sh @@ -5,6 +5,9 @@ PROJECT_PATH=${BASE_PATH}/project PROJECT_TYPE_PATH=${BASE_PATH}/projecttype +echo "[STAGE: Publication]" +VERSION=$(cat VERSION) +echo $VERSION BRANCH=main EXISTING_GIT_VERSION="$(git tag -l)" HUGO_VERSION=$(hugo version) @@ -15,6 +18,18 @@ VERSION=$(cat VERSION) BASE_URL="this would be the path to s3 bucket/${REPO_NAME}/" S3_URI="s3://aws-abi/guide/${REPO_NAME}/" +<<<<<<< before updating +======= + + +if [[ $(echo $EXISTING_GIT_VERSION | grep $VERSION) ]] +then + echo "version exists skipping release creation hint: Bump version in VERSION file" +else + echo "creating new version" + gh release create ${VERSION} --target ${BRANCH} --generate-notes +fi +>>>>>>> after updating print_header() { printf "\n\n%s\n" "$*" diff --git a/.project_config.yml b/.project_config.yml index 742776f..b049876 100644 --- a/.project_config.yml +++ b/.project_config.yml @@ -12,6 +12,8 @@ functional_tests: dockerfile: .project_automation/functional_tests/Dockerfile entrypoint: .project_automation/functional_tests/entrypoint.sh publication: + github_permissions: + contents: write enable_docker: true dockerfile: .project_automation/publication/Dockerfile entrypoint: .project_automation/publication/entrypoint.sh From cbdcd0d0ab16adb93d5428d6c93fc54ec9637347 Mon Sep 17 00:00:00 2001 From: Andrew Glenn <29951057+andrew-glenn@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:56:44 -0500 Subject: [PATCH 2/2] fixing merge conflict --- .project_automation/publication/entrypoint.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.project_automation/publication/entrypoint.sh b/.project_automation/publication/entrypoint.sh index b11e854..f18eb67 100755 --- a/.project_automation/publication/entrypoint.sh +++ b/.project_automation/publication/entrypoint.sh @@ -18,9 +18,6 @@ VERSION=$(cat VERSION) BASE_URL="this would be the path to s3 bucket/${REPO_NAME}/" S3_URI="s3://aws-abi/guide/${REPO_NAME}/" -<<<<<<< before updating -======= - if [[ $(echo $EXISTING_GIT_VERSION | grep $VERSION) ]] then @@ -29,7 +26,6 @@ else echo "creating new version" gh release create ${VERSION} --target ${BRANCH} --generate-notes fi ->>>>>>> after updating print_header() { printf "\n\n%s\n" "$*"