Fix Non Release Commit Workflow (#464)

This commit is contained in:
IntegerLimit 2023-10-20 16:59:58 +11:00 committed by GitHub
parent 8d8e944c14
commit e2aac147e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,13 +156,11 @@ jobs:
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
- name: Update Files from Templates
if: ${{ inputs.not_release }}
working-directory: ./tools
run: |
npx gulp updateTemplatesAll
- name: Commit and Push Template Changes
if: ${{ inputs.not_release }}
uses: "stefanzweifel/git-auto-commit-action@v4"
id: "commit-template"
with:
@ -170,7 +168,7 @@ jobs:
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
- name: Throw Error if No Template Changes were Detected
if: ${{ inputs.not_release && steps.commit-template.outputs.changes_detected == 'false' }}
if: ${{ steps.commit-template.outputs.changes_detected == 'false' }}
run: |
echo "No Template Changes were detected. This may be an error."
exit 1