From 2496056192160dfd45b715321689b71750cda556 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Mon, 23 Oct 2023 22:31:32 -0700 Subject: [PATCH] Updating script (#29932) Co-authored-by: Karsten Sperling <113487422+ksperling-apple@users.noreply.github.com> Co-authored-by: Restyled.io --- .github/workflows/tag-releases.yaml | 4 ++-- scripts/tagging/tag_new_release.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tag-releases.yaml b/.github/workflows/tag-releases.yaml index 29689dd909317d..cdeb8778ab10f3 100644 --- a/.github/workflows/tag-releases.yaml +++ b/.github/workflows/tag-releases.yaml @@ -45,8 +45,8 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) + export BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) echo "Tagging against branch: $BRANCH_NAME" - ./scripts/tagging/tag_new_release.sh --generate-notes --target $BRANCH_NAME -d # Note this is a draft for now. + ./scripts/tagging/tag_new_release.sh --generate-notes --target "$BRANCH_NAME" -d # Note this is a draft for now. diff --git a/scripts/tagging/tag_new_release.sh b/scripts/tagging/tag_new_release.sh index 0e26c26de4cfb2..1fca130cf8f385 100755 --- a/scripts/tagging/tag_new_release.sh +++ b/scripts/tagging/tag_new_release.sh @@ -54,4 +54,5 @@ echo "SDK release revisions: $SDK_RELEASE_REVISIONS" echo "New release: $NEW_RELEASE_TAG" echo "Additional arguments: $ADDITIONAL_ARGS" -gh release create "$ADDITIONAL_ARGS" --notes-start-tag "$CURRENT_RELEASE" "$NEW_RELEASE_TAG" "$@" +echo executing: gh release create "$NEW_RELEASE_TAG" --notes-start-tag "$CURRENT_RELEASE" "$@" "$ADDITIONAL_ARGS" +gh release create "$NEW_RELEASE_TAG" "--notes-start-tag" "$CURRENT_RELEASE" "$@" "$ADDITIONAL_ARGS"