From e5e1d99057fedbc06ee9d59bb647b2901cac677e Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Sun, 7 Apr 2024 19:33:51 -0700 Subject: [PATCH] [HACK] Try grabbing just one Docker tag --- .github/actions/docker/action.yaml | 2 +- .github/actions/docker_win/action.yaml | 2 +- .github/workflows/main.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/docker/action.yaml b/.github/actions/docker/action.yaml index 50d106c7eaa..abfe99375a5 100644 --- a/.github/actions/docker/action.yaml +++ b/.github/actions/docker/action.yaml @@ -38,7 +38,7 @@ runs: set -x docker_tag="${{ steps.meta.outputs.tags }}" docker_tag="${docker_tag%.1[+,-]}" - echo "DOCKER_TAG=${docker_tag}" >> $GITHUB_ENV + echo "DOCKER_TAG=${docker_tag}" | head -n 1 >> $GITHUB_ENV shell: bash # We need to set docker tag properly for pull requests. In those scenarios where no docker related files # were changed we need to use an existing image (e.g. main). In cases where docker image is rebuilt we have diff --git a/.github/actions/docker_win/action.yaml b/.github/actions/docker_win/action.yaml index efa8c24e1c7..6e028c24697 100644 --- a/.github/actions/docker_win/action.yaml +++ b/.github/actions/docker_win/action.yaml @@ -33,7 +33,7 @@ runs: set -x docker_tag="${{ steps.meta.outputs.tags }}" docker_tag="${docker_tag%.1[+,-]}" - echo "DOCKER_TAG=${docker_tag}" >> $GITHUB_ENV + echo "DOCKER_TAG=${docker_tag}" | head -n 1 >> $GITHUB_ENV shell: bash # We need to set docker tag properly for pull requests. In those scenarios where no docker related files # were changed we need to use an existing image (e.g. main). In cases where docker image is rebuilt we have diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4717d45d8a5..ba5f880e07b 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -149,7 +149,7 @@ jobs: id: set-docker-tag-output run: | echo $DOCKER_TAG - echo "docker_tag=$DOCKER_TAG" >> $GITHUB_ENV + echo "docker_tag=$DOCKER_TAG" | head -n 1 >> $GITHUB_ENV outputs: docker_tag: ${{env.docker_tag}}