From f1325a21cf7b52339d28f261d6203615846cea97 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 21 May 2025 07:53:59 -0400 Subject: [PATCH] Delete .github/workflows/check-releases.yml --- .github/workflows/check-releases.yml | 46 ---------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/check-releases.yml diff --git a/.github/workflows/check-releases.yml b/.github/workflows/check-releases.yml deleted file mode 100644 index b3b095c..0000000 --- a/.github/workflows/check-releases.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Check for Hugo releases - -on: - schedule: - - cron: '0 */3 * * *' # run every three hours - workflow_dispatch: - -jobs: - check: - runs-on: ubuntu-latest - steps: - - name: Get latest Hugo version - id: hugo_version - run: | - HUGO_VERSION=$(curl --silent https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r .tag_name | sed 's/v//') - echo "::set-output name=VERSION::$HUGO_VERSION" - - name: Get current package version - id: package_version - run: | - setVersion=$(npm show hugo-extended hugoVersion) - npmVersion=$(npm show hugo-extended version) - PACKAGE_VERSION="${setVersion:-$npmVersion}" - echo "::set-output name=VERSION::$PACKAGE_VERSION" - - name: Compare versions - id: update - run: | - echo "Current package version is v${{ steps.package_version.outputs.VERSION }}." - echo "Current Hugo version is v${{ steps.hugo_version.outputs.VERSION }}." - - if [ "${{ steps.hugo_version.outputs.VERSION }}" != "${{ steps.package_version.outputs.VERSION }}" ] - then - echo "🚨 Needs updating!" - exit 1 - else - echo "✅ All good for now." - exit 0 - fi - - name: Send Discord notification - uses: appleboy/discord-action@master - if: failure() - with: - webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} - webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} - message: '📦 New Hugo version (v${{ steps.hugo_version.outputs.VERSION }}) is available: https://github.com/gohugoio/hugo/releases/tag/v${{ steps.hugo_version.outputs.VERSION }}' - -# TODO: Automatically bump npm package, commit back to repo, and publish new version.