From 606370db4ad8cec41736491e0f0735306ac55dfc Mon Sep 17 00:00:00 2001 From: "taesung.kim (Stussy)" Date: Sun, 9 Jun 2024 19:02:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=A6=B4=EB=A6=AC=EC=A6=88=20=EB=85=B8?= =?UTF-8?q?=ED=8A=B8=20=EC=83=9D=EC=84=B1=20=EC=8B=9C=EC=A0=90=EC=97=90=20?= =?UTF-8?q?=EB=A7=88=EC=9D=BC=EC=8A=A4=ED=86=A4=20=EB=8B=AB=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-release-note.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release-note.yml b/.github/workflows/create-release-note.yml index 0ff8830..9af08e6 100644 --- a/.github/workflows/create-release-note.yml +++ b/.github/workflows/create-release-note.yml @@ -30,7 +30,7 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/kts6056/droidknights-2024-github-actions/releases \ + https://api.github.com/repos/${{ github.repository }}/releases \ -d "{\"tag_name\":\"$tag_name\",\"target_commitish\":\"main\",\"name\":\"$name\",\"generate_release_notes\":true}" \ -w "\n%{http_code}" -o -) @@ -43,3 +43,23 @@ jobs: if [ "$RESPONSE_CODE" -lt 200 ] || [ "$RESPONSE_CODE" -gt 299 ]; then exit 1 fi + + - name: Close Milestone + shell: bash + run: | + # 마일스톤 이름으로 MILESTONE_NUMBER 얻기 + MILESTONE_NUMBER=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/${{ github.repository }}/milestones" | \ + jq -r --arg MILESTONE_NAME "${{ steps.get-app-version.outputs.version_name }}" '.[] | select(.title == $MILESTONE_NAME) | .number') + + # 해당 MILESTONE_NUMBER로 마일스톤 닫기 + if [ ! -z "$MILESTONE_NUMBER" ]; then + curl -X PATCH \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/${{ github.repository }}/milestones/$MILESTONE_NUMBER" \ + -d '{"state": "closed"}' + else + echo "Milestone not found" + fi From a790773872729cf58ee6ebf7369dfdb85a420726 Mon Sep 17 00:00:00 2001 From: "taesung.kim (Stussy)" Date: Sun, 9 Jun 2024 19:06:08 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app-version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-version.json b/app-version.json index 682ae14..dc9ff3f 100644 --- a/app-version.json +++ b/app-version.json @@ -1,5 +1,5 @@ { "year": 24, - "week_no": 24, + "week_no": 25, "hotfix": 0 }