Update checkout action used in workflow files (#1017)

* Use the latest tagged release of the checkout action.
* Cleanup some of the echo group prints in the workflow files
pull/1018/head^2
Soren Ptak 11 months ago committed by GitHub
parent e8289dfee6
commit 7c910499ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -31,14 +31,14 @@ jobs:
# Currently FreeRTOS/.github/scripts houses the release script. Download it for upcoming usage # Currently FreeRTOS/.github/scripts houses the release script. Download it for upcoming usage
- name: Checkout FreeRTOS Release Tools - name: Checkout FreeRTOS Release Tools
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
path: tools path: tools
# Simpler git auth if we use checkout action and forward the repo to release script # Simpler git auth if we use checkout action and forward the repo to release script
- name: Checkout FreeRTOS Kernel - name: Checkout FreeRTOS Kernel
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: local_kernel path: local_kernel
fetch-depth: 0 fetch-depth: 0

@ -9,7 +9,7 @@ jobs:
formatting: formatting:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4.1.1
- name: Check Formatting of FreeRTOS-Kernel Files - name: Check Formatting of FreeRTOS-Kernel Files
uses: FreeRTOS/CI-CD-Github-Actions/formatting@main uses: FreeRTOS/CI-CD-Github-Actions/formatting@main
with: with:
@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone This Repo - name: Clone This Repo
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
- name: Run spellings check - name: Run spellings check
uses: FreeRTOS/CI-CD-Github-Actions/spellings@main uses: FreeRTOS/CI-CD-Github-Actions/spellings@main
with: with:
@ -30,14 +30,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone This Repo - name: Clone This Repo
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
- name: Link Verification - name: Link Verification
uses: FreeRTOS/CI-CD-Github-Actions/link-verifier@main uses: FreeRTOS/CI-CD-Github-Actions/link-verifier@main
verify-manifest: verify-manifest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4.1.1
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0

@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the Repository - name: Checkout the Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
- env: - env:
stepName: Install Build Essentials stepName: Install Build Essentials

@ -7,11 +7,11 @@ jobs:
git-secrets: git-secrets:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4.1.1
with: with:
submodules: recursive submodules: recursive
- name: Checkout awslabs/git-secrets - name: Checkout awslabs/git-secrets
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
repository: awslabs/git-secrets repository: awslabs/git-secrets
ref: master ref: master

@ -15,7 +15,7 @@ jobs:
# There is shared code, hosted by FreeRTOS/FreeRTOS, with deps needed by header checker # There is shared code, hosted by FreeRTOS/FreeRTOS, with deps needed by header checker
- name: Checkout FreeRTOS Tools - name: Checkout FreeRTOS Tools
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
sparse-checkout: '.github' sparse-checkout: '.github'
@ -24,7 +24,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: inspect path: inspect

@ -14,7 +14,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout the FreeRTOS/FreeRTOS Repository - name: Checkout the FreeRTOS/FreeRTOS Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
@ -23,7 +23,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source
@ -43,7 +43,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout the FreeRTOS/FreeRTOS Repository - name: Checkout the FreeRTOS/FreeRTOS Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
@ -52,7 +52,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source
@ -74,7 +74,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout the FreeRTOS/FreeRTOS Repository - name: Checkout the FreeRTOS/FreeRTOS Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
@ -83,7 +83,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source
@ -110,7 +110,7 @@ jobs:
steps: steps:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
- name: Install GCC - name: Install GCC
shell: bash shell: bash
@ -137,7 +137,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the FreeRTOS/FreeRTOS Repository - name: Checkout the FreeRTOS/FreeRTOS Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
@ -146,7 +146,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source
@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the FreeRTOS/FreeRTOS Repository - name: Checkout the FreeRTOS/FreeRTOS Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
@ -176,7 +176,7 @@ jobs:
stepName: Fetch Community-Supported-Demos Submodule stepName: Fetch Community-Supported-Demos Submodule
shell: bash shell: bash
run: | run: |
# Fetch Community-Supported-Demos Submodule # ${{ env.stepName }}
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}" echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
git submodule update --checkout --init --depth 1 FreeRTOS/Demo/ThirdParty/Community-Supported-Demos git submodule update --checkout --init --depth 1 FreeRTOS/Demo/ThirdParty/Community-Supported-Demos
# This repository contains the microblaze_instructions.h header file # This repository contains the microblaze_instructions.h header file
@ -186,7 +186,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source
@ -252,29 +252,24 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the FreeRTOS/FreeRTOS Repository - name: Checkout the FreeRTOS/FreeRTOS Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
fetch-depth: 1 fetch-depth: 1
- name: Fetch Community-Supported-Demos Submodule - env:
stepName: Fetch Community-Supported-Demos Submodule
shell: bash shell: bash
run: | run: |
# Fetch Community-Supported-Demos Submodule # ${{ env.stepName }}
echo "::group::Fetch Community-Supported-Demos Submodule" echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
git submodule update --checkout --init --depth 1 FreeRTOS/Demo/ThirdParty/Community-Supported-Demos git submodule update --checkout --init --depth 1 FreeRTOS/Demo/ThirdParty/Community-Supported-Demos
echo "::endgroup::" echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
if [ "$?" = "0" ]; then
echo -e "\033[32;3mCloned the Community-Supported-Demos\033[0m"
else
echo -e "\033[32;31mCommunity-Supported-Demos Clone Failed...\033[0m"
exit 1
fi
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source

@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout Parent Repository - name: Checkout Parent Repository
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
ref: main ref: main
repository: FreeRTOS/FreeRTOS repository: FreeRTOS/FreeRTOS
@ -15,7 +15,7 @@ jobs:
# Checkout user pull request changes # Checkout user pull request changes
- name: Checkout Pull Request - name: Checkout Pull Request
uses: actions/checkout@v3 uses: actions/checkout@v4.1.1
with: with:
path: ./FreeRTOS/Source path: ./FreeRTOS/Source

Loading…
Cancel
Save