From b29ce1212bc1cddedfb44064ed70ff3b78cc990e Mon Sep 17 00:00:00 2001 From: "Mahadik, Mukul Chandrakant" Date: Mon, 7 Oct 2024 19:51:18 -0700 Subject: [PATCH] Trying with no-multi-line curl request --- .github/workflows/reusable_image_build_push.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/reusable_image_build_push.yml b/.github/workflows/reusable_image_build_push.yml index a92a1ca4a..b390eed17 100644 --- a/.github/workflows/reusable_image_build_push.yml +++ b/.github/workflows/reusable_image_build_push.yml @@ -24,6 +24,7 @@ jobs: repository: MukuFlash03/${{ inputs.repo }} ref: ${{ inputs.branch }} token: ${{ secrets.GH_FG_PAT_TAGS }} + fetch-depth: 0 - name: Fetch latest repository release tag id: fetch-latest-release-tags @@ -293,8 +294,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "Github Actions bot to update .env with latest tags" - git tag -a ${{ steps.increment-release-tag.outputs.new_repo_version }} \ - -m "$(git log --pretty=format:%s ${{ steps.set-tags.outputs.CURRENT_REPO_TAG }}...HEAD --no-merges)" + git tag -a ${{ steps.increment-release-tag.outputs.new_repo_version }} -m"$(git log --pretty=format:%s ${{ steps.set-tags.outputs.CURRENT_REPO_TAG }}...HEAD --no-merges)" git push origin ${{ steps.increment-release-tag.outputs.new_repo_version }} @@ -307,12 +307,7 @@ jobs: -H "Authorization: Bearer ${{ secrets.GH_FG_PAT_TAGS }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/MukuFlash03/${{ inputs.repo }}/releases \ - -d '{"tag_name":${{ steps.increment-release-tag.outputs.new_repo_version }}, \ - "target_commitish":${{ inputs.branch }}, \ - "name":${{ steps.increment-release-tag.outputs.new_repo_version }}, \ - "body":"Triggered on e-mission-server new release. Bumping up release version for ${{ inputs.repo}}", \ - "generate_release_notes":true \ - }' + -d '{"tag_name":${{ steps.increment-release-tag.outputs.new_repo_version }},"target_commitish":${{ inputs.branch }},"name":${{ steps.increment-release-tag.outputs.new_repo_version }},"body":"Triggered on e-mission-server new release. Bumping up release version.","generate_release_notes":true}' echo "Logging latest created release"