Skip to content

Commit

Permalink
Swap to using named steps for the checkout actions, fix incorrect pat…
Browse files Browse the repository at this point in the history
…h in the m0+ demo
  • Loading branch information
Skptak committed Jan 2, 2024
1 parent 51fe695 commit ab968f7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/kernel-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
{
demo: CORTEX_M0+_RP2040,
demoDirectory: FreeRTOS/Demo,
buildCMD: "git submodule update --checkout --init --depth 1 FreeRTOS/Demo/ThirdParty/Community-Supported-Demos;
buildCMD: "git submodule update --checkout --init --depth 1 ThirdParty/Community-Supported-Demos;
cd ThirdParty/Community-Supported-Demos/CORTEX_M0+_RP2040;
git clone --depth 1 --branch 1.5.1 https://github.com/raspberrypi/pico-sdk.git;
cmake -B build -DPICO_SDK_PATH=pico-sdk -GNinja;
Expand All @@ -206,8 +206,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- env:
stepName: Checkout ${{env.prUserName}}/FreeRTOS:${{env.prBranchName}} Repository
- name: Checkout ${{ env.prUserName }}/FreeRTOS:${{ env.prBranchName }} Repository
id: checkout-user-fork-and-branch
continue-on-error: true
uses: actions/checkout@v3
Expand All @@ -217,8 +216,7 @@ jobs:
repository: '${{ env.prUserName}}/FreeRTOS'
fetch-depth: 1

- env:
stepName: Checkout ${{ env.prUserName }}/FreeRTOS:main Repository
- name: Checkout ${{ env.prUserName }}/FreeRTOS:main Repository
if: ${{ steps.checkout-user-fork-and-branch.outcome }} == 'failure'
id: checkout-user-fork
continue-on-error: true
Expand All @@ -229,8 +227,7 @@ jobs:
repository: '${{ env.prUserName }}/FreeRTOS'
fetch-depth: 1

- env:
stepName: Checkout FreeRTOS/FreeRTOS:main Repository
- name: Checkout FreeRTOS/FreeRTOS:main Repository
if: ( ${{ steps.checkout-user-fork.outcome }} == 'failure' )
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit ab968f7

Please sign in to comment.