Skip to content

Commit 59ab8bd

Browse files
committed
ci(go-check-versions): run outside of docker
1 parent 28fcf4e commit 59ab8bd

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

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

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

99
permissions: {}
1010

11+
defaults:
12+
run:
13+
working-directory: aws-cli
14+
1115
jobs:
1216
go-check-versions:
1317
runs-on: ubuntu-latest
1418
steps:
15-
- name: Check the versions
19+
- name: Check out
20+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21+
with:
22+
fetch-depth: 1
23+
persist-credentials: false
24+
- name: Set up Go
25+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v6.1.0
26+
with:
27+
go-version: 1.25.4
28+
- name: Check outdated dependencies
1629
shell: bash
1730
run: |
1831
set -euo pipefail
1932
IFS=$'\n\t'
20-
docker run --pull always -t --user root --entrypoint /bin/sh "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" -c 'if go install -u | tee -a /dev/stderr | grep -q -e .; then exit 1; fi'
33+
if [ go list -u -m all 2>&1 | tee -a /dev/stderr | grep -q -e '\[' ]; then
34+
exit 1
35+
fi

0 commit comments

Comments
 (0)