Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed May 8, 2024
1 parent e4310b5 commit 17d2f41
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/timeout-save/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ inputs:
description: The value of timeout-minutes for this step.
required: true

outputs:
job-id:
description: "The job id for the job that timed out. If the job did not timeout, then this is the empty string."
value: ${{ steps.job-id.outputs.job-id }}

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -57,14 +52,8 @@ runs:
}
return false;
- name: Write Timeout File
if: steps.timeout.outputs.result == 'true'
uses: ./.github/workflows/write-timeout-file
with:
job-name: ${{ inputs.job-name }}
filename: timeout-${{ inputs.artifact-name-suffix }}

- name: Handle Timeout
- name: Save Working Directory
shell: bash
if: steps.timeout.outputs.result == 'true'
id: timeout
Expand All @@ -73,17 +62,28 @@ runs:
tar -h -c . | zstd -T0 -c > ../llvm-project.tar.zst
mv ../llvm-project.tar.zst .
- name: Upload Build
- name: Upload Working Directory
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0
if: steps.timeout.outputs.result == 'true'
with:
name: timeout-build-${{ inputs.artifact-name-suffix }}
path: llvm-project.tar.zst
retention-days: 2

- name: Get Job ID
id: job-id
if: steps.timeout.outputs.result == 'true'
uses: ./.github/workflows/get-job-id
with:
job-name: ${{ inputs.job-name }}

- name: Create Timeout File
shell: bash
run: touch timeout-${{ steps.job-id.outputs.job-id }}

- name: Upload Timeout File
if: steps.timeout.outputs.result == 'true'
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0
with:
name: timeout-${{ inputs.artifact-name-suffix }}
path: timeout-${{ inputs.artifact-name-suffix }}
path: timeout-${{ steps.job-id.outputs.job-id }}
2 changes: 1 addition & 1 deletion .github/workflows/write-timeout-file/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ runs:

- shell: bash
run: |
echo '{"job_id": "${{ steps.job-id.outputs.job-id }}"}' > ${{ inputs.filename }}
echo '{"job_id": "${{ steps.job-id.outputs.job-id }}"}' > timeout-${{ steps.job-id

0 comments on commit 17d2f41

Please sign in to comment.