Skip to content

Commit

Permalink
ci: create backport label and milestone on release
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Feb 9, 2024
1 parent 5b4eb97 commit d5fa608
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,23 @@ jobs:
with:
version: ${{ needs.process-inputs.outputs.NEXT_PATCH_PRE_WITHOUT_V }}
commit: true

create-github-stuff:
name: Create backport label and milestone
needs: process-inputs
runs-on: ubuntu-22.04
env:
RELEASE_BRANCH: ${{ needs.process-inputs.outputs.RELEASE_BRANCH }}
steps:
- name: Create backport label
run: |
gh label create "backport ${RELEASE_BRANCH}" --color 576F61 --force
- name: Create milestone
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/edgelesssys/nunki/milestones \
-f title='${{ inputs.version }}' \
-f state='open'

0 comments on commit d5fa608

Please sign in to comment.