Fix Non Release Commit Workflow (#464)
This commit is contained in:
parent
8d8e944c14
commit
e2aac147e5
4
.github/workflows/releasecommit.yml
vendored
4
.github/workflows/releasecommit.yml
vendored
@ -156,13 +156,11 @@ jobs:
|
|||||||
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
|
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
|
||||||
|
|
||||||
- name: Update Files from Templates
|
- name: Update Files from Templates
|
||||||
if: ${{ inputs.not_release }}
|
|
||||||
working-directory: ./tools
|
working-directory: ./tools
|
||||||
run: |
|
run: |
|
||||||
npx gulp updateTemplatesAll
|
npx gulp updateTemplatesAll
|
||||||
|
|
||||||
- name: Commit and Push Template Changes
|
- name: Commit and Push Template Changes
|
||||||
if: ${{ inputs.not_release }}
|
|
||||||
uses: "stefanzweifel/git-auto-commit-action@v4"
|
uses: "stefanzweifel/git-auto-commit-action@v4"
|
||||||
id: "commit-template"
|
id: "commit-template"
|
||||||
with:
|
with:
|
||||||
@ -170,7 +168,7 @@ jobs:
|
|||||||
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
||||||
|
|
||||||
- name: Throw Error if No Template Changes were Detected
|
- 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: |
|
run: |
|
||||||
echo "No Template Changes were detected. This may be an error."
|
echo "No Template Changes were detected. This may be an error."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user