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