Any way to ignore the ignore clause to trigger builds/redeploys?

Hey @moop-moop,
I don’t know of a way to override the ignore command, but one way you could handle the env var changes is have a boolean like ENV_CHANGE, and check for the value in your ignore script. So something like this (caveat: writing Bash is… not my expertise!):

#!/bin/bash

if [[ $ENV_CHANGE = true ]]
then
  exit 1
elif [[ git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../../common/ ]]
then
  exit 0
else
  exit 1
fi

The added overhead here is that you have to remember to switch variable’s value when you make a relevant change. You may be able to adapt other examples from here: [Support Guide] How to use the ignore command

1 Like