-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from subashcs/fail_on_error
feat: add fail_on_error parameter support on github actions
- Loading branch information
Showing
4 changed files
with
126 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,20 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Run commitlint | ||
id: commitlintrun | ||
uses: ./ # Uses an action in the root directory | ||
# or use a released GitHub Action | ||
# uses: opensource-nepal/[email protected] | ||
with: | ||
fail_on_error: false | ||
|
||
- name: Check Output | ||
run: | | ||
echo 'Status - ${{ steps.commitlintrun.outputs.status }}' | ||
echo 'Exit Code - ${{ steps.commitlintrun.outputs.exit_code }}' | ||
# Check commitlintrun status | ||
if [ "${{ steps.commitlintrun.outputs.status }}" = "failure" ]; then | ||
echo "Failing the job manually because Commitlint status is failure." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters