From 9c207d805f3256d9d4131ff518434d3afa94c2d0 Mon Sep 17 00:00:00 2001 From: Charuka Tharindu Date: Thu, 6 Jul 2023 11:49:27 +0530 Subject: [PATCH 1/2] Fix md file path --- .github/workflows/publish-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c4ecbec8e5..2770d7ec97 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -125,12 +125,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | gh repo view ballerina-platform/ballerina-dev-website -b release-2201.7.0 --json url --jq '.clone_url' - gh api repos/ballerina-platform/ballerina-dev-website/contents/downloads/release-artifacts-verification.md?ref=release-2201.7.0 -H 'Accept: application/vnd.github.v3.raw' > release_notes.md + gh api repos/ballerina-platform/ballerina-dev-website/contents/downloads/verify-ballerina-artifacts.md.md?ref=release-2201.7.0 -H 'Accept: application/vnd.github.v3.raw' > release_notes.md - name: Update Markdown file run: | branchName=$(echo ${{ github.ref }} | cut -d'/' -f3) - if ${{ github.event.inputs.isPreRelease }} == 'true'; then - echo "" > release_notes.md; + if ${{ github.event.inputs.isPreRelease }} == 'true'; then + echo "" > release_notes.md; else sed -i 's/{{ version }}/${{ steps.version-set.outputs.taggedVersion }}/g' release_notes.md; sed -i 's/{{ branch }}/$branchName/g' release_notes.md; fi - name: Read release notes from file id: release_notes From 98c2534684f1b4294889eec61f4fc2a49866cb78 Mon Sep 17 00:00:00 2001 From: Tharindu Udupitiya <66210480+udda1996@users.noreply.github.com> Date: Thu, 6 Jul 2023 11:54:34 +0530 Subject: [PATCH 2/2] Update .github/workflows/publish-release.yml Co-authored-by: Sarani Mendis --- .github/workflows/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 2770d7ec97..bbe6d18a1d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -125,7 +125,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | gh repo view ballerina-platform/ballerina-dev-website -b release-2201.7.0 --json url --jq '.clone_url' - gh api repos/ballerina-platform/ballerina-dev-website/contents/downloads/verify-ballerina-artifacts.md.md?ref=release-2201.7.0 -H 'Accept: application/vnd.github.v3.raw' > release_notes.md + gh api repos/ballerina-platform/ballerina-dev-website/contents/downloads/verify-ballerina-artifacts.md?ref=release-2201.7.0 -H 'Accept: application/vnd.github.v3.raw' > release_notes.md - name: Update Markdown file run: | branchName=$(echo ${{ github.ref }} | cut -d'/' -f3)