Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix node.js LTS check #136

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/auto-issue-templates/new-node-lts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_Issue created automatically by a Github action._

A new Node.js LTS version has been detected: `{{ steps.check-version.outputs.new_lts_version }}`.
A new active Node.js LTS version has been detected.

Please test the Log4brains project against this version and update the supported versions accordingly.

Expand Down
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
21 changes: 17 additions & 4 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 }}"
title: "Support 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
Loading