From afcf97b858a8f2e8656fdd1affd75f232af092eb Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Fri, 23 Dec 2022 16:21:10 -0500 Subject: [PATCH] Fix action.yml update Signed-off-by: Brett Logan --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0034a428..75b8cbfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,9 +27,13 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Update action.yml + run: yq '.runs.image = "docker://ghcr.io/github/super-linter:${tag}"' -i action.yml + env: + tag: ${{ matrix.images.image-id }} - name: Retrieve Datetime run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "${GITHUB_ENV}" - - name: Build Docker images + - name: Build Docker Image run: | docker build --build-arg "BUILD_DATE=${date}" \ --build-arg "BUILD_DATE=${revision}" \ @@ -42,10 +46,6 @@ jobs: tag: ${{ matrix.images.image-id }} target: ${{ matrix.images.container-build-target }} version: ${{ github.sha }} - - name: Update action.yml - run: yq -i action.yml '.runs.image = "docker://ghcr.io/github/super-linter:${tag}"' - env: - tag: ${{ matrix.images.image-id }} - name: Lint Codebase if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} uses: ./