Skip to content

Commit 4c65010

Browse files
committed
Fix: Remove node.js warnings in GHA
1 parent 559d68b commit 4c65010

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/check_policies.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@ jobs:
44
check-commit-messages:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
7+
- uses: actions/checkout@v4
88
with:
99
# Checkout with full history, not just latest revision.
1010
fetch-depth: 0
1111
- uses: actions/setup-python@v4
12+
with:
13+
python-version: '3.10'
1214
- run: |
1315
bash .github/workflows/check_commit_messages.sh \
1416
${{ github.event.before }} ${{ github.event.after }}
1517
check-formatting:
1618
runs-on: ubuntu-latest
1719
steps:
20+
- uses: actions/checkout@v4
1821
- uses: actions/setup-python@v4
19-
- uses: actions/checkout@v3
22+
with:
23+
python-version: '3.10'
2024
- run: pip install fprettify
2125
- run: fprettify --config .fprettify.ini --diff --recursive src
22-
- run: if [[ ! -z "$($FPRETTIFY_COMMAND)" ]]; then echo "::warning::Code formatting issues detected"; fi
26+
- run: if [[ ! -z "$($FPRETTIFY_COMMAND)" ]]; then echo "::warning::Code formatting issues detected. See log for details."; fi
2327
env:
2428
FPRETTIFY_COMMAND: fprettify --config .fprettify.ini --diff --recursive src

0 commit comments

Comments
 (0)