I want to check if a VERSION file has changed when I run my CI job.
If the VERSION file hasn’t changed the job should fail.
I was thinking I could use the path filtering but I’m unsure how to then fail the job if the VERSION file hasn’t changed.
orbs:
path-filtering: circleci/path-filtering@0.0.2
workflows:
setup:
version: 2
spotify_poller_install_test:
jobs:
- path-filtering/filter:
base-revision: master
mapping: |
VERSION modified_version true
Has anyone come across this usecase before? Or have any advice?