Skip to content

Commit

Permalink
ci: only create milestone if absent
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Meyer <[email protected]>
  • Loading branch information
burgerdev and katexochen committed Feb 19, 2024
1 parent fe1afa8 commit 95c86f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ jobs:
gh label create "backport ${RELEASE_BRANCH}" --color 576F61 --force
- name: Create milestone
run: |
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/edgelesssys/nunki/milestones |
jq -r '.[] | .title' | \
grep -xqF "${{ inputs.version }}" && exit 0
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
Expand Down

0 comments on commit 95c86f7

Please sign in to comment.