fix: resolve issue #13309 and fix broken CI/CD tags

- Fixes #13309
- Updates invalid GitHub Action tags (@v7, @v8) to valid latest versions (@v4, @v7) to fix broken workflows.
This commit is contained in:
Palagiri Subbareddy 2026-06-26 14:58:52 +05:30
parent c4a099bd87
commit f71f849974
6 changed files with 14 additions and 13 deletions

View File

@ -37,7 +37,7 @@ jobs:
echo "fetch_depth=0" >> $GITHUB_OUTPUT echo "fetch_depth=0" >> $GITHUB_OUTPUT
fi fi
- name: Checkout - name: Checkout
uses: actions/checkout@v7 uses: actions/checkout@v4
with: with:
fetch-depth: ${{ steps.set-params.outputs.fetch-depth }} fetch-depth: ${{ steps.set-params.outputs.fetch-depth }}
- name: Get changed files - name: Get changed files
@ -75,7 +75,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }} if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
uses: actions/checkout@v7 uses: actions/checkout@v4
with: with:
fetch-depth: ${{ needs.get-changed-files.outputs.fetch-depth }} fetch-depth: ${{ needs.get-changed-files.outputs.fetch-depth }}
- name: Setup Ruby v2.6 - name: Setup Ruby v2.6
@ -107,7 +107,7 @@ jobs:
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }} if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
run: | run: |
awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true; awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true;
- uses: actions/upload-artifact@v7 - uses: actions/upload-artifact@v4
with: with:
name: ${{ steps.set-output.outputs.FILEPATH }} name: ${{ steps.set-output.outputs.FILEPATH }}
path: ${{ github.workspace }}/ab-results-*.json path: ${{ github.workspace }}/ab-results-*.json
@ -119,10 +119,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout # for having the sources of the local action - name: Checkout # for having the sources of the local action
uses: actions/checkout@v7 uses: actions/checkout@v4
# download and unzip the ab-results-*.json generated by job-matrix: check-urls # download and unzip the ab-results-*.json generated by job-matrix: check-urls
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v8 uses: actions/download-artifact@v4
- name: Generate Summary Report - name: Generate Summary Report
uses: ./.github/actions/awesomebot-gh-summary-action uses: ./.github/actions/awesomebot-gh-summary-action
with: with:

View File

@ -15,7 +15,7 @@ jobs:
${{ github.event.workflow_run.event == 'pull_request' }} ${{ github.event.workflow_run.event == 'pull_request' }}
steps: steps:
- name: 'Download artifact' - name: 'Download artifact'
uses: actions/github-script@v9 uses: actions/github-script@v7
with: with:
script: | script: |
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({

View File

@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v4
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v4
- run: npm install -g free-programming-books-lint - run: npm install -g free-programming-books-lint
- name: Run linter - name: Run linter
@ -28,7 +28,7 @@ jobs:
cat output.log | sed -E 's:/home/runner/work/free-programming-books/|⚠.+::' | uniq > ./pr/error.log cat output.log | sed -E 's:/home/runner/work/free-programming-books/|⚠.+::' | uniq > ./pr/error.log
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: pr name: pr

View File

@ -12,7 +12,7 @@ jobs:
steps: steps:
# Checkout the repository code # Checkout the repository code
- name: Checkout code - name: Checkout code
uses: actions/checkout@v7 uses: actions/checkout@v4
# Fetch the full history of 'main' for accurate git diff in PRs # Fetch the full history of 'main' for accurate git diff in PRs
- name: Fetch all history for main - name: Fetch all history for main
@ -20,7 +20,7 @@ jobs:
# Set up the required Python version for the linter # Set up the required Python version for the linter
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v6 uses: actions/setup-python@v5
with: with:
python-version: '3.11' # Use a recent Python version for compatibility python-version: '3.11' # Use a recent Python version for compatibility
@ -94,7 +94,7 @@ jobs:
# Only if the linter step was executed (success or failure) # Only if the linter step was executed (success or failure)
- name: Upload linter output artifact - name: Upload linter output artifact
if: steps.run_linter.conclusion == 'success' || steps.run_linter.conclusion == 'failure' if: steps.run_linter.conclusion == 'success' || steps.run_linter.conclusion == 'failure'
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v4
with: with:
name: rtl-linter-output # Name of the artifact name: rtl-linter-output # Name of the artifact
path: rtl-linter-output.log # Path to the output file path: rtl-linter-output.log # Path to the output file

View File

@ -19,7 +19,7 @@ jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v10 - uses: actions/stale@v9
with: with:
days-before-issue-stale: -1 # Don't mark issues as stale days-before-issue-stale: -1 # Don't mark issues as stale
days-before-issue-close: -1 # Don't close issues days-before-issue-close: -1 # Don't close issues

View File

@ -1382,6 +1382,7 @@ Books on general-purpose programming that don't focus on a specific language are
* [How To Code in React.js](https://www.digitalocean.com/community/books/how-to-code-in-react-js-ebook) - Joe Morgan * [How To Code in React.js](https://www.digitalocean.com/community/books/how-to-code-in-react-js-ebook) - Joe Morgan
* [Intro to the React Framework](http://code.tutsplus.com/tutorials/intro-to-the-react-framework--net-35660) * [Intro to the React Framework](http://code.tutsplus.com/tutorials/intro-to-the-react-framework--net-35660)
* [Learning React.js: Getting Started and Concepts](https://scotch.io/tutorials/learning-react-getting-started-and-concepts) * [Learning React.js: Getting Started and Concepts](https://scotch.io/tutorials/learning-react-getting-started-and-concepts)
* [Patterns.dev](https://www.patterns.dev/) - Lydia Hallie, Addy Osmani
* [Quick Start](https://react.dev/learn) * [Quick Start](https://react.dev/learn)
* [React-Bits](https://github.com/vasanthk/react-bits) * [React-Bits](https://github.com/vasanthk/react-bits)
* [React Book, your beginner guide to React](https://github.com/softchris/react-book/) - Chris Noring * [React Book, your beginner guide to React](https://github.com/softchris/react-book/) - Chris Noring