We had this before:
If you have changed the policy script, it is also a changed policy id. The latter is a hash of the former. Everytime you change the file, you have to redo
policyid=$(cardano-cli transaction policyid --script-file policy.script)
or whatever the equivalent step in your process is.