From 586f2ea02161152033f8095fb0887d2e84ba4a6e Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 2 Nov 2023 11:33:55 +0100 Subject: [PATCH] Fix Artifacts index bump when using workflow_call (#2900) Use inputs.version which is available for workflow_call as well as workflow_dispatch. --- .github/workflows/artifacts-index.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/artifacts-index.yaml b/.github/workflows/artifacts-index.yaml index 554ad49ef..e67921b18 100644 --- a/.github/workflows/artifacts-index.yaml +++ b/.github/workflows/artifacts-index.yaml @@ -59,10 +59,10 @@ jobs: aws s3api list-objects-v2 \ --bucket "${{ secrets.R2_OS_ARTIFACTS_BUCKET }}" \ --endpoint-url "${{ secrets.R2_OS_ARTIFACTS_ENDPOINT }}" \ - --prefix "${{ github.event.inputs.version }}/" \ - --query 'Contents[].Key' | jq 'map(split("/")[1]) | sort' > "${{ github.event.inputs.version }}.json" + --prefix "${{ inputs.version }}/" \ + --query 'Contents[].Key' | jq 'map(split("/")[1]) | sort' > "${{ inputs.version }}.json" aws s3 cp \ - "${{ github.event.inputs.version }}.json" \ + "${{ inputs.version }}.json" \ s3://${{ secrets.R2_OS_ARTIFACTS_BUCKET }}/indexes/ \ --endpoint-url "${{ secrets.R2_OS_ARTIFACTS_ENDPOINT }}"