Skip to content

Commit

Permalink
ci: fix node.js LTS check
Browse files Browse the repository at this point in the history
  • Loading branch information
thomvaill committed Nov 21, 2024
1 parent 91da65c commit 9554382
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-release-tag-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
npm-package: log4brains
npm-version: ${{ needs.get-log4brains-version.outputs.version }}

build-and-push:
docker-build-and-push:
needs: wait-for-npm-version-to-be-published
runs-on: ubuntu-latest
steps:
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/scheduled-weekly-new-nodejs-lts-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
needs: load-nodejs-supported-versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github
- name: Compare supported versions with current active Node.js LTS
id: check-version
run: |
Expand All @@ -40,12 +45,20 @@ jobs:
echo "> is NOT yet supported!"
echo "new_lts_version=${active_lts}" >> "${GITHUB_OUTPUT}"
- name: Create an issue if new LTS
if: steps.check-version.outputs.new_lts_version
- name: Find the last open LTS issue
id: last-issue
uses: micalevisk/last-issue-action@v2
with:
state: open
labels: |
auto-node-lts
- name: Create an issue if new LTS and not yet opened
if: ${{ steps.check-version.outputs.new_lts_version != '' && steps.last-issue.outputs.has-found != 'true' }}
uses: peter-evans/create-issue-from-file@v5
with:
title: "New Node.js LTS version: ${{ steps.check-version.outputs.new_lts_version }}"
content-filepath: .github/auto-issue-templates/new-node-lts.md
labels: |
auto
auto-node-lts
maintenance

0 comments on commit 9554382

Please sign in to comment.