File tree Expand file tree Collapse file tree 3 files changed +21
-14
lines changed
Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change @@ -17,14 +17,25 @@ jobs:
1717 steps :
1818 - name : Set REPOSITORY
1919 shell : bash
20- run : echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> "${GITHUB_ENV}"
20+ run : |
21+ set -euo pipefail
22+ IFS=$'\n\t'
23+ echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> "${GITHUB_ENV}"
2124 - name : Check out
2225 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2326 - name : Install PerlCritic
2427 shell : bash
2528 run : |
26- sudo apt update -y
27- sudo apt install libperl-critic-perl
29+ set -euo pipefail
30+ IFS=$'\n\t'
31+ sudo apt-get update
32+ sudo apt-get install --no-install-recommends -y libperl-critic-perl=1.152-1
33+ if sudo apt-get upgrade -s | tee -a /dev/stderr | grep -q -e '^Inst libperl-critic-perl '; then
34+ exit 1
35+ fi
2836 - name : Run PerlCritic
2937 shell : bash
30- run : perlcritic ${REPOSITORY}
38+ run : |
39+ set -euo pipefail
40+ IFS=$'\n\t'
41+ perlcritic ${REPOSITORY}
Original file line number Diff line number Diff line change 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}}' .
You can’t perform that action at this time.
0 commit comments