Skip to content

Commit

Permalink
lets outsource it
Browse files Browse the repository at this point in the history
  • Loading branch information
infotroph committed Feb 16, 2024
1 parent dae46ad commit 14efaa2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ jobs:
# Only runs on pull_request -- others it's not clear what base to compare to
- name: check for changed dependencies
if: github.base_ref != ''
run: |
dep_chgs=$(
git diff --name-status ${GITHUB_BASE_REF} ${GITHUB_HEAD_REF} -- docker/depends)
if [[ "$dep_chgs" != "" ]]; then
echo 'UPDATE_DEPENDS_FROM_TAG=${GITHUB_BASE_REF##*/}' >> $GITHUB_ENV
fi
env:
GITHUB_BASE_REF: develop
uses: dorny/paths-filter@v3
id: findchanges
with:
filters: |
deps:
- docker/depends/**
- if: steps.findchanges.outputs.deps == 'true'
run: echo 'UPDATE_DEPENDS_FROM_TAG=${GITHUB_BASE_REF##*/}' >> $GITHUB_ENV
# use shell script to build, there is some complexity in this
- name: create images
run: ./docker.sh -i github
Expand Down

0 comments on commit 14efaa2

Please sign in to comment.