Skip to content

Commit 6145b2f

Browse files
committed
ci(gh-actions): bash strict mode
1 parent 99aa2da commit 6145b2f

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/automerge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- name: Enable auto-merge for Dependabot PRs
1616
shell: bash
1717
run: |
18+
set -euo pipefail
19+
IFS=$'\n\t'
1820
# Checking the PR title is a poor substitute for the actual PR changes
1921
# but as long as this is used only with dependabot PRs,
2022
# it should be safe to assume that the title is not misleading.

.github/workflows/yamllint.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ jobs:
1717
steps:
1818
- name: Check out
1919
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20-
- name: Install YAMLLint
21-
shell: bash
22-
run: |
23-
pip install yamllint==1.37.1
24-
msg="$(pip list --outdated | grep -e yamllint || true)"
25-
if [ -n "${msg}" ]; then
26-
>&2 echo "ERROR: outdated: ${msg}"
27-
exit 1
28-
fi
2920
- name: Run YAMLLint
3021
shell: bash
31-
run: "yamllint -d '{extends: default, rules: {line-length: disable}}' ."
22+
run: |
23+
set -euo pipefail
24+
IFS=$'\n\t'
25+
yamllint -d '{extends: default, rules: {line-length: disable}}' .

0 commit comments

Comments
 (0)