From 58cd25b93d6bf70f106b0d9cb8c39d4bb5610cb0 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mon, 25 Jan 2021 18:37:20 +0100 Subject: [PATCH] Add important files for container build to rebuild check When we did rebuild check we just looked if dockerfile and files in that directory has changed. However, these are not the only ones giving us dependencies for container image build. Check also: * spec file * script file used during the build --- .github/workflows/tests-contributors.yml | 4 ++-- .github/workflows/tests-owners.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests-contributors.yml b/.github/workflows/tests-contributors.yml index 30b7284f949..d6806625f8a 100644 --- a/.github/workflows/tests-contributors.yml +++ b/.github/workflows/tests-contributors.yml @@ -89,10 +89,10 @@ jobs: git log --oneline -1 ${{ env.TARGET_BRANCH_NAME }} git rebase ${{ env.TARGET_BRANCH_NAME }} - - name: Check if container changed in this PR + - name: Check if rebuild of the container image is required id: check-dockerfile-changed run: | - changes=$(git diff ${{ env.TARGET_BRANCH_NAME }}..HEAD -- dockerfile/anaconda-ci/) + changes=$(git diff ${{ env.TARGET_BRANCH_NAME }}..HEAD -- dockerfile/anaconda-ci/ anaconda.spec.in scripts/testing/install_dependencies.sh) # print for debugging echo "$changes" [ -z "$changes" ] || echo "::set-output name=changed::true" diff --git a/.github/workflows/tests-owners.yml b/.github/workflows/tests-owners.yml index 5338cbb4cdd..9ff59099204 100644 --- a/.github/workflows/tests-owners.yml +++ b/.github/workflows/tests-owners.yml @@ -60,10 +60,10 @@ jobs: git log --oneline -1 ${{ env.TARGET_BRANCH_NAME }} git rebase ${{ env.TARGET_BRANCH_NAME }} - - name: Check if container changed in this PR + - name: Check if rebuild of the container image is required id: check-dockerfile-changed run: | - changes=$(git diff origin/master..HEAD -- dockerfile/anaconda-ci/) + changes=$(git diff origin/master..HEAD -- dockerfile/anaconda-ci/ anaconda.spec.in scripts/testing/install_dependencies.sh) # print for debugging echo "$changes" [ -z "$changes" ] || echo "::set-output name=changed::true"