Skip to content

Commit

Permalink
Merge pull request #12 from kts6056/develop
Browse files Browse the repository at this point in the history
sync: 24.25.0
  • Loading branch information
kts6056 committed Jun 9, 2024
2 parents c5927c2 + a790773 commit adca2b5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/create-release-note.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -)
Expand All @@ -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
2 changes: 2 additions & 0 deletions .github/workflows/verify-on-unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: "[CI] verify unit test"

on:
pull_request:
types: [opened, synchronize]
Expand Down
2 changes: 1 addition & 1 deletion app-version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"year": 24,
"week_no": 24,
"week_no": 25,
"hotfix": 0
}

0 comments on commit adca2b5

Please # to comment.