Prevent deployments when the commit SHA and deployment SHA is the same
jobs:
deploy:
steps:
- name: Should Deploy?
id: should-deploy
uses: utrustdev/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
jobs:
deploy:
steps:
....
- name: Get output
run: |
echo "output: ${{ steps.should-deploy.outputs.is_deployable }}"
echo "sha: ${{ steps.should-deploy.outputs.sha }}"
jobs:
deploy:
steps:
....
- name: Trigger Deploy
if: ${{ steps.should-deploy.outputs.is_deployable == 'true' }}
uses: ....
with:
....