We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3a288 commit 7ff6256Copy full SHA for 7ff6256
.github/workflows/outdated.yml
@@ -70,3 +70,25 @@ jobs:
70
-
71
name: "Check for outdated production packages"
72
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