diff --git a/.github/auto-issue-templates/new-node-lts.md b/.github/auto-issue-templates/new-node-lts.md index a151330..973b53a 100644 --- a/.github/auto-issue-templates/new-node-lts.md +++ b/.github/auto-issue-templates/new-node-lts.md @@ -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. diff --git a/.github/workflows/on-release-tag-alpha.yml b/.github/workflows/on-release-tag-alpha.yml index 291d83e..0977de8 100644 --- a/.github/workflows/on-release-tag-alpha.yml +++ b/.github/workflows/on-release-tag-alpha.yml @@ -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: diff --git a/.github/workflows/scheduled-weekly-new-nodejs-lts-check.yml b/.github/workflows/scheduled-weekly-new-nodejs-lts-check.yml index 9b2a17d..ddad05a 100644 --- a/.github/workflows/scheduled-weekly-new-nodejs-lts-check.yml +++ b/.github/workflows/scheduled-weekly-new-nodejs-lts-check.yml @@ -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: | @@ -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