From ec410dd848b2feae207a913d3f54f76574263a0e Mon Sep 17 00:00:00 2001 From: Sandeep Datta Date: Wed, 7 Aug 2024 10:31:58 -0700 Subject: [PATCH] Fixed path to the actions folder. Attempt 2. --- .github/actions/build/action.yml.j2 | 2 +- .github/actions/setup/action.yml | 1 - .github/workflows/gh-build.yml | 5 ++--- .github/workflows/gh-test-within-container.yml | 4 ++-- .github/workflows/gh-test-without-container.yml | 4 ++-- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/actions/build/action.yml.j2 b/.github/actions/build/action.yml.j2 index 17ffcb57..7f715a4f 100644 --- a/.github/actions/build/action.yml.j2 +++ b/.github/actions/build/action.yml.j2 @@ -32,7 +32,7 @@ runs: <% for package_id, package_info in packages.items() %> - name: Download <> (artifacts) - uses: ./${{ inputs.client-repo }}/.github/actions/download-artifacts + uses: ./.github/actions/download-artifacts with: artifact-repo: "<>" artifact-name: "<>" diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 41eae2c4..b6eefbc5 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -29,7 +29,6 @@ runs: - name: Set REPO_DIR and Dump environment shell: bash --noprofile --norc -xeuo pipefail {0} run: | - cd ${{ inputs.client-repo }} echo "REPO_DIR=$(pwd)" >> $GITHUB_ENV env diff --git a/.github/workflows/gh-build.yml b/.github/workflows/gh-build.yml index ec74bbd5..676f471d 100644 --- a/.github/workflows/gh-build.yml +++ b/.github/workflows/gh-build.yml @@ -51,10 +51,9 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - path: ${{ inputs.client-repo }} - name: Setup - uses: ./${{ inputs.client-repo }}/.github/actions/setup + uses: ./.github/actions/setup with: client-repo: ${{ inputs.client-repo }} build-type: ${{ inputs.build-type }} @@ -86,7 +85,7 @@ jobs: cat ${REPO_DIR}/.github/actions/build/action.yml - name: Call build action - uses: ./${{ inputs.client-repo }}/.github/actions/build + uses: ./.github/actions/build with: build-type: ${{ inputs.build-type }} target-device: "${{ inputs.target-device }}" diff --git a/.github/workflows/gh-test-within-container.yml b/.github/workflows/gh-test-within-container.yml index b6ab0964..efb928c2 100644 --- a/.github/workflows/gh-test-within-container.yml +++ b/.github/workflows/gh-test-within-container.yml @@ -56,7 +56,7 @@ jobs: steps: - name: Setup - uses: ./${{ inputs.client-repo }}/.github/actions/setup + uses: ./.github/actions/setup with: client-repo: ${{ inputs.client-repo }} build-type: ${{ inputs.build-type }} @@ -67,7 +67,7 @@ jobs: python-version: ${{ inputs.python-version }} - name: Call test action - uses: ./${{ inputs.client-repo }}/.github/actions/test + uses: ./.github/actions/test with: test-options: ${{ inputs.test-options }} has-gpu: ${{ inputs.has-gpu }} diff --git a/.github/workflows/gh-test-without-container.yml b/.github/workflows/gh-test-without-container.yml index 028285c1..9f72e2d6 100644 --- a/.github/workflows/gh-test-without-container.yml +++ b/.github/workflows/gh-test-without-container.yml @@ -50,7 +50,7 @@ jobs: steps: - name: Setup - uses: ./${{ inputs.client-repo }}/.github/actions/setup + uses: ./.github/actions/setup with: client-repo: ${{ inputs.client-repo }} build-type: ${{ inputs.build-type }} @@ -61,7 +61,7 @@ jobs: python-version: ${{ inputs.python-version }} - name: Call test action - uses: ./${{ inputs.client-repo }}/.github/actions/test + uses: ./.github/actions/test with: test-options: ${{ inputs.test-options }} has-gpu: ${{ inputs.has-gpu }}