diff --git a/.github/workflows/tom-select-release-check.yml b/.github/workflows/tom-select-release-check.yml new file mode 100644 index 00000000..eb51f281 --- /dev/null +++ b/.github/workflows/tom-select-release-check.yml @@ -0,0 +1,61 @@ +name: Check Tom-Select Latest Release + +on: + schedule: + - cron: '0 19 * * *' # Check every day at 19:00 + workflow_dispatch: # Allows manual triggering for testing purposes + +permissions: + contents: read + issues: write + +jobs: + check-and-notify: + runs-on: ubuntu-latest + steps: + - name: Get latest release from external repo + id: get_release + run: | + REPO_TARGET="orchidjs/tom-select" + LATEST_TAG=$(curl -s https://api.github.com/repos/$REPO_TARGET/releases/latest | jq -r .tag_name) + + if [ "$LATEST_TAG" == "null" ] || [ -z "$LATEST_TAG" ]; then + echo "Error: unable to fetch tag or no release found." + exit 1 + fi + + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT + echo "target=$REPO_TARGET" >> $GITHUB_OUTPUT + + - name: Check if Issue already exists and create it + uses: actions/github-script@v7 + with: + script: | + const latestTag = "${{ steps.get_release.outputs.tag }}"; + const targetRepo = "${{ steps.get_release.outputs.target }}"; + const { owner, repo } = context.repo; + const issueTitle = `Update Tom Select to version ${latestTag}`; + + // Search through issues (both open and closed for safety) + const response = await github.rest.search.issuesAndPullRequests({ + q: `repo:${owner}/${repo} is:issue "${issueTitle}"`, + }); + + if (response.data.total_count > 0) { + core.info(`The issue for version ${latestTag} already exists. No action taken.`); + } else { + await github.rest.issues.create({ + owner, + repo, + title: issueTitle, + labels: ['enhancement'], + body: `Update Tom Select to version **${latestTag}**. + + https://cdn.jsdelivr.net/npm/tom-select@${latestTag}/dist/js/tom-select.base.js + + https://cdn.jsdelivr.net/npm/tom-select@${latestTag}/dist/css/tom-select.default.min.css + + Remember also to update the VENDORS.md file.` + }); + core.info(`New issue created for version ${latestTag}.`); + } diff --git a/CHANGELOG.md b/CHANGELOG.md index c3efc6fe..aadfab42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,10 @@
  • [ChatGPT Web] Added an option to define a custom time to wait for the page load. Sometimes, on slow PCs, the ChatGPT page loads slowly and ThunderAI inject its content too early. With this option you can adjust the waiting time [#634].
  • ...
  • +

    Version 3.8.5 - 22/02/2026

    +

    Version 3.8.4 - 10/02/2026

    +

    Version 3.8.5 - 22/02/2026

    +

    Version 3.8.4 - 10/02/2026