From 3d4223eb9b3151a9962809abe319ccddb53e3119 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Mon, 29 Jun 2026 19:02:13 -0600 Subject: [PATCH] chore: replace archived upload-release-asset with gh release upload The archived actions/upload-release-asset runs on the node12 runtime and has no Node 24 release. Replace it with a 'gh release upload' step (GitHub CLI, no action runtime) and surface release-drafter's tag_name output. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release-drafter.yml | 28 +++++++-------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1521f5184f2..3edcc63ac27 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -23,7 +23,7 @@ jobs: update_release_draft: runs-on: ubuntu-latest outputs: - upload_url: ${{ steps.create_release.outputs.upload_url }} + tag_name: ${{ steps.create_release.outputs.tag_name }} steps: - name: Create Release id: create_release @@ -51,26 +51,12 @@ jobs: with: pattern: oas-* - - name: Upload Release Asset - OpenAPI Specification - YAML - id: upload-release-asset-yaml - uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 + - name: Upload OAS schemas to release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.update_release_draft.outputs.upload_url }} - asset_path: ./oas-yaml/oas.yaml - asset_name: oas.yaml - asset_content_type: application/vnd.oai.openapi - - - name: Upload Release Asset - OpenAPI Specification - JSON - id: upload-release-asset-json - uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.update_release_draft.outputs.upload_url }} - asset_path: ./oas-json/oas.json - asset_name: oas.json - asset_content_type: application/json + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload "${{ needs.update_release_draft.outputs.tag_name }}" \ + ./oas-yaml/oas.yaml ./oas-json/oas.json \ + --clobber --repo "${{ github.repository }}"