From 9f347ac6515bf8e8e501279fade78828a2611953 Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Tue, 9 Jul 2024 12:45:19 +0800 Subject: [PATCH] update --- .github/actions/build-and-push-docker/action.yml | 5 +++++ .github/workflows/docker.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/actions/build-and-push-docker/action.yml b/.github/actions/build-and-push-docker/action.yml index a5fc998..439d46b 100644 --- a/.github/actions/build-and-push-docker/action.yml +++ b/.github/actions/build-and-push-docker/action.yml @@ -15,6 +15,10 @@ inputs: description: "Whether to clean up" required: false default: 'true' + upload-metadata: + description: "Whether to upload metadata files" + required: false + default: 'true' dockerhub-owner: description: "Owner of the DockerHub registry" required: false @@ -166,6 +170,7 @@ runs: - name: Upload metadata id: upload-artifact + if: ${{ inputs.upload-metadata == 'true' }} uses: actions/upload-artifact@v4 with: name: ${{ steps.export.outputs.metadata_file_name }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index aeb07d7..88a98b1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -103,6 +103,7 @@ jobs: with: targets: ${{ matrix.target }} clean-up: false + upload-metadata: false push: false set: | *.target=py-installer