Skip to content

Commit

Permalink
Merge pull request #3123 from jkonecny12/master-build-container-when-…
Browse files Browse the repository at this point in the history
…spec-changed

Add important files for container build to rebuild check
  • Loading branch information
jkonecny12 authored Jan 26, 2021
2 parents 5b26609 + 58cd25b commit 7fd62dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-owners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7fd62dd

Please sign in to comment.