Skip to content

Commit

Permalink
Check AlDanial/cloc releases (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Oct 14, 2023
1 parent 2a3a288 commit 7ff6256
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,25 @@ jobs:
-
name: "Check for outdated production packages"
run: "npm outdated --omit=dev"

AlDanial_cloc:
name: "AlDanial/cloc"
runs-on: "ubuntu-22.04"
timeout-minutes: 5
steps:
-
name: "Checkout repository"
uses: "actions/[email protected]"
-
name: "Show available updates"
env:
GH_TOKEN: "${{ github.token }}"
run: |
CURRENT_VERSION="$(
cat .github/workflows/reusable-integrity.yml \
| yq -r '."jobs".*."steps"[] | select(."run" | contains("gh api /repos")) | ."run"' \
| sed -n -e 's/^\s*# \(v\S\+\)$/\1/p'
)"
LATEST_VERSION="$(gh api /repos/AlDanial/cloc/releases/latest --jq '."tag_name"')"
echo "LATEST=${LATEST_VERSION}"
test "${CURRENT_VERSION}" = "${LATEST_VERSION}"

0 comments on commit 7ff6256

Please sign in to comment.