From b9596ff20553ad621ae66ebff17feaf5cb827937 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 2 Feb 2024 09:08:46 -0800 Subject: [PATCH] fix(ci): typo in my bash script (#26987) --- .github/workflows/docker-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 0d0770db28d5f..3ba7b6bf42fd0 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -59,6 +59,7 @@ jobs: persist-credentials: false submodules: recursive ref: ${{ github.ref }} + fetch-depth: 0 - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -73,9 +74,10 @@ jobs: run: | RELEASE="${{ github.event.release.tag_name }}" FORCE_LATEST="" + EVENT="${{github.event_name}}" if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then # in the case of a manually-triggered run, read release from input - RELEASE ="${{ github.event.inputs.release }}" + RELEASE="${{ github.event.inputs.release }}" if [ "${{ github.event.inputs.force-latest }}" = "true" ]; then FORCE_LATEST="--force-latest" fi @@ -83,10 +85,11 @@ jobs: cp ./scripts/build_docker.py /tmp git checkout "${{ github.event.inputs.git-ref }}" cp /tmp/build_docker.py scripts/ + EVENT="release" fi pip install click ./scripts/build_docker.py \ ${{ matrix.build_preset }} \ - "${{ github.event_name }}" \ + "$EVENT" \ --build_context_ref "$RELEASE" \ --platform ${{ matrix.platform }} $FORCE_LATEST