1
0

return milestone id

This commit is contained in:
Marco Maatz 2025-01-16 12:15:20 +01:00
parent a1d1957d29
commit caa077592a

View File

@ -11,11 +11,17 @@ on:
newName:
required: true
type: string
outputs:
milestoneId:
description: "Milestone Id"
value: ${{ jobs.rename.outputs.milestoneId }}
jobs:
rename:
runs-on: ubuntu-latest
outputs:
downloadUrl: ${{ steps.Rename.outputs.milestoneId }}
steps:
- name: Rename
- id: Rename
run: |
GITEA_API_URL="https://gitea.greyhound-software.com/api/v1"
OWNER="greyhound"
@ -55,4 +61,5 @@ jobs:
-d "$milestone_data" \
"$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/milestones")
echo "milestoneId=$update_milestone_id" >> $GITHUB_OUTPUT
echo "Created new '${{ inputs.currentName }}' milestone: $response"