Skip to content

Commit 18794bf

Browse files
committed
build: ensure workflow does not fail for non-zero exit codes
#3106 introduced a non-zero exit code for the `.github/workflows/scripts/generate_pr_commit_message` script whenever the PR references a tracking issue. This caused the workflow to fail for all such PRs due to GitHub Actions running shell scripts using bash -e {0}, causing the script to exit immediately if any command exits with a non-zero status. --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 3723b66 commit 18794bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/generate_pr_commit_message.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
# Generate commit message:
6666
- name: 'Generate commit message'
6767
id: commit_message
68+
shell: bash {0} # Omit -e to avoid triggering a failure if the script returns a non-zero exit code
6869
run: |
6970
COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message $PR_NUMBER)
7071
EXIT_CODE=$?

0 commit comments

Comments
 (0)