Skip to content

Commit a206c58

Browse files
committed
ci(docker): de-dockerize version checks
1 parent facd00b commit a206c58

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed
Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Pipx Check Versions
2+
name: NPM Check Versions
33

44
on:
55
schedule:
@@ -8,13 +8,27 @@ on:
88

99
permissions: {}
1010

11+
defaults:
12+
run:
13+
working-directory: json
14+
1115
jobs:
1216
npm-check-versions:
1317
runs-on: ubuntu-latest
1418
steps:
15-
- name: Check the versions
19+
- name: Check out
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
persist-credentials: false
23+
- name: Set up Node
24+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
25+
with:
26+
node-version: 24
27+
- name: Check outdated dependencies
1628
shell: bash
1729
run: |
1830
set -euo pipefail
1931
IFS=$'\n\t'
20-
docker run --pull always -t --user root "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" npm outdated --global
32+
if npx npm-check-updates | tee -a /dev/stderr | grep -q -e '→' ; then
33+
exit 1
34+
fi

.github/workflows/pipx-check-versions.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,27 @@ on:
88

99
permissions: {}
1010

11+
defaults:
12+
run:
13+
working-directory: json
14+
1115
jobs:
12-
pipx-check-versions:
16+
npm-check-versions:
1317
runs-on: ubuntu-latest
1418
steps:
15-
- name: Check the versions
19+
- name: Check out
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
persist-credentials: false
23+
- name: Set up Python
24+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
25+
with:
26+
python-version: 3.14
27+
- name: Check outdated dependencies
1628
shell: bash
1729
run: |
1830
set -euo pipefail
1931
IFS=$'\n\t'
20-
docker run --pull always -t --user root --entrypoint /bin/sh "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" -c 'if pipx upgrade-all --global | tee -a /dev/stderr | grep -q -e "^upgraded "; then exit 1; fi'
32+
if pipx upgrade-all --global | tee -a /dev/stderr | grep -q -e "^upgraded " ; then
33+
exit 1
34+
fi

0 commit comments

Comments
 (0)