diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f862790fa..1c4ac4e91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ on: - main - preprod/** - dev/** + - exp-** env: DOCKER_REGISTRY: ghcr.io @@ -48,8 +49,9 @@ jobs: - name: Determine changes files run: | + PREVIOUS_TAG=$(git tag --sort version:refname | tail -n 2 | head -n 1) # Create a comma-separated list of changed files for use in build.gradle.kts - CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r -m $GITHUB_SHA | tr '\r\n' ',' | sed -e 's/,$//' | tr -d '"') + CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r -m $PREVIOUS_TAG $GITHUB_REF | tr '\r\n' ',' | sed -e 's/,$//' | tr -d '"') echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV - name: Determine projects to deploy