Skip to content

Commit

Permalink
feat: modify action to return output and workflow to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
boukeas committed May 2, 2024
1 parent eb989a0 commit f43fa95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/actions/create-checkbox-canary-test-job/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -83,4 +84,4 @@ runs:
PYTHONUNBUFFERED=1 checkbox-cli control \$DEVICE_IP canary.launcher
EXITCODE=\$?
JOB_EOF
cat job.yaml
echo "job=$OUTPUT_PATH" >> $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion .github/workflows/checkbox-canary-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Verify job
shell: bash
run:
echo ${{ steps.create-job.outputs.job }}
cat ${{ steps.create-job.outputs.job }}

0 comments on commit f43fa95

Please sign in to comment.