Skip to content

Commit 7ff6256

Browse files
authored
Check AlDanial/cloc releases (#63)
1 parent 2a3a288 commit 7ff6256

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/outdated.yml

+22
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,25 @@ jobs:
7070
-
7171
name: "Check for outdated production packages"
7272
run: "npm outdated --omit=dev"
73+
74+
AlDanial_cloc:
75+
name: "AlDanial/cloc"
76+
runs-on: "ubuntu-22.04"
77+
timeout-minutes: 5
78+
steps:
79+
-
80+
name: "Checkout repository"
81+
uses: "actions/[email protected]"
82+
-
83+
name: "Show available updates"
84+
env:
85+
GH_TOKEN: "${{ github.token }}"
86+
run: |
87+
CURRENT_VERSION="$(
88+
cat .github/workflows/reusable-integrity.yml \
89+
| yq -r '."jobs".*."steps"[] | select(."run" | contains("gh api /repos")) | ."run"' \
90+
| sed -n -e 's/^\s*# \(v\S\+\)$/\1/p'
91+
)"
92+
LATEST_VERSION="$(gh api /repos/AlDanial/cloc/releases/latest --jq '."tag_name"')"
93+
echo "LATEST=${LATEST_VERSION}"
94+
test "${CURRENT_VERSION}" = "${LATEST_VERSION}"

0 commit comments

Comments
 (0)