From 14c5054ea374738313de244fa4848fded231186c Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Tue, 7 Nov 2023 18:34:06 +0330 Subject: [PATCH] chore(ci): enhance perf --- .github/workflows/publish-container.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index 17897c2..49869bc 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -39,8 +39,6 @@ jobs: id-token: write steps: - - name: ⤵️ Checkout repository - uses: actions/checkout@v4.0.0 - name: ❔ Check Container files changed id: file_change @@ -59,6 +57,10 @@ jobs: # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: ⤵️ Checkout repository + if: ${{ steps.file_change.outputs.container_folder == 'true' }} + uses: actions/checkout@v4.0.0 + - name: 🏗 Extract Docker metadata id: meta if: ${{ steps.file_change.outputs.container_folder == 'true' }}