From f43fa9548629f4a8332ed7d9eb48ff8e7976af3b Mon Sep 17 00:00:00 2001 From: George Boukeas Date: Thu, 2 May 2024 11:55:09 +0100 Subject: [PATCH] feat: modify action to return output and workflow to use it --- .github/actions/create-checkbox-canary-test-job/action.yaml | 5 +++-- .github/workflows/checkbox-canary-test.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/create-checkbox-canary-test-job/action.yaml b/.github/actions/create-checkbox-canary-test-job/action.yaml index 3defb87ee..94798866f 100644 --- a/.github/actions/create-checkbox-canary-test-job/action.yaml +++ b/.github/actions/create-checkbox-canary-test-job/action.yaml @@ -17,7 +17,8 @@ runs: steps: - shell: bash run: | - cat << JOB_EOF > job.yaml + OUTPUT_PATH=${{ github.workspace }}/job.yaml + cat << JOB_EOF > $OUTPUT_PATH job_queue : ${{ inputs.queue }} global_timeout: 3600 output_timeout: 1800 @@ -83,4 +84,4 @@ runs: PYTHONUNBUFFERED=1 checkbox-cli control \$DEVICE_IP canary.launcher EXITCODE=\$? JOB_EOF - cat job.yaml \ No newline at end of file + echo "job=$OUTPUT_PATH" >> $GITHUB_OUTPUT \ No newline at end of file diff --git a/.github/workflows/checkbox-canary-test.yaml b/.github/workflows/checkbox-canary-test.yaml index 4e078a27b..3c078bf22 100644 --- a/.github/workflows/checkbox-canary-test.yaml +++ b/.github/workflows/checkbox-canary-test.yaml @@ -34,4 +34,4 @@ jobs: - name: Verify job shell: bash run: - echo ${{ steps.create-job.outputs.job }} + cat ${{ steps.create-job.outputs.job }}