diff --git a/.github/workflows/check-last-updated.yml b/.github/workflows/check-last-updated.yml index 71877fd87f..8f01941764 100644 --- a/.github/workflows/check-last-updated.yml +++ b/.github/workflows/check-last-updated.yml @@ -3,13 +3,13 @@ name: Check Last Updated Fields on: pull_request: paths: - - 'content/resources/faq/**' + - 'content/resources/faqs/**' - 'content/resources/articles/**' push: branches: - '**' paths: - - 'content/resources/faq/**' + - 'content/resources/faqs/**' - 'content/resources/articles/**' jobs: @@ -17,14 +17,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: - fetch-depth: 2 + fetch-depth: 2 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v7 with: - node-version: '18' + node-version: '26' - name: Run Last Updated Check run: node scripts/check-last-updated.js diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml index feb1d1ba53..1f7325991e 100644 --- a/.github/workflows/compress-images.yml +++ b/.github/workflows/compress-images.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v7 - name: Compress Images uses: calibreapp/image-actions@main diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 00492084c8..9a6dee3f85 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -10,22 +10,23 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.128.0' + hugo-version: '0.170.1' + dart-sass-version: '1.108.2' extended: true - name: Build run: hugo --minify - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/hugo-preview.yml b/.github/workflows/hugo-preview.yml index c96f4d6e50..ae94d552aa 100644 --- a/.github/workflows/hugo-preview.yml +++ b/.github/workflows/hugo-preview.yml @@ -5,14 +5,15 @@ on: jobs: build_preview: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.128.0' + hugo-version: '0.170.1' + dart-sass-version: '1.108.2' extended: true - name: Setup base URL env var diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f5c7e86847..86152b4c00 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,11 +1,11 @@ name: CI -'on': +on: - push jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install modules run: | npm install diff --git a/scripts/check-last-updated.js b/scripts/check-last-updated.js index 7e6da3f422..9ddbd69fed 100644 --- a/scripts/check-last-updated.js +++ b/scripts/check-last-updated.js @@ -3,8 +3,8 @@ const fs = require("fs"); const GIT_RANGE = "HEAD~1..HEAD"; const TARGET_DIRS = [ - "content/resources/faqs/**", - "content/resources/articles/**" + "content/resources/faqs/", + "content/resources/articles/" ]; function getChangedFiles() { @@ -56,4 +56,4 @@ if (failed) { throw new Error("🚫 Commit rejected: 'last_updated' must be updated for each modified FAQ/article."); } else { console.log("✅ All modified FAQ/article files have updated 'last_updated' fields."); -} \ No newline at end of file +}