From caa077592a01c7ad72a6fd3724217ba4cf932ab9 Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Thu, 16 Jan 2025 12:15:20 +0100 Subject: [PATCH] return milestone id --- .gitea/workflows/milestoneRenameAndRecreate.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/milestoneRenameAndRecreate.yaml b/.gitea/workflows/milestoneRenameAndRecreate.yaml index 209c707..5af405c 100644 --- a/.gitea/workflows/milestoneRenameAndRecreate.yaml +++ b/.gitea/workflows/milestoneRenameAndRecreate.yaml @@ -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" \ No newline at end of file