From 6bf43084bb828c5408dafbb04ab4e4b3d3647a4e Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 11 Nov 2026 14:18:16 +0800 Subject: [PATCH] ci: release-assets - fix zip-release pin and support dispatching at a tag thedoctor0/zip-release retagged upstream: v0.7.6 no longer exists (the tag is now 0.7.6), so the v3.4.0 release-assets job failed at action resolution and the release is missing its vis_json/metadata assets. The workflow now dispatches with an explicit tag input so the v3.4.0 assets can be backfilled from the fixed workflow (tag: ${{ inputs.tag || github.ref }}). --- .github/workflows/assets.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index 8686ed9f..81db9e5f 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -5,6 +5,11 @@ on: tags: - 'v*' workflow_dispatch: + inputs: + tag: + description: 'Release tag to attach the assets to (defaults to the dispatching ref)' + required: false + type: string jobs: assets: @@ -37,7 +42,7 @@ jobs: run: bundle exec rake generate_visualization_json - name: Archive visualization JSON - uses: thedoctor0/zip-release@v0.7.6 + uses: thedoctor0/zip-release@0.7.6 with: filename: 'vis_json.zip' path: ./vis_json/*.json @@ -52,7 +57,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ruby/vis_json.zip file_glob: true - tag: ${{ github.ref }} + tag: ${{ inputs.tag || github.ref }} overwrite: true - name: Generate metadata @@ -60,7 +65,7 @@ jobs: run: bundle exec rake generate_metadata_json - name: Archive metadata - uses: thedoctor0/zip-release@v0.7.6 + uses: thedoctor0/zip-release@0.7.6 with: filename: 'metadata.zip' path: ./metadata.json @@ -75,7 +80,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ruby/metadata.zip asset_name: metadata.json.zip - tag: ${{ github.ref }} + tag: ${{ inputs.tag || github.ref }} overwrite: true - name: Output links