Skip to content

Commit ca8e7eb

Browse files
committed
Split logs download and DB upload into separate jobs
1 parent 8751cec commit ca8e7eb

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ on:
4444
required: true
4545

4646
jobs:
47-
upload-to-db:
48-
runs-on: mysqldb
47+
fetch-logs:
48+
runs-on: linux-mi355-1
4949
steps:
50-
- name: Checkout source
51-
uses: actions/checkout@v4
5250
- name: Download logs artifact from source run
5351
env:
5452
GH_TOKEN: ${{ secrets.SECRET_TOKEN }}
@@ -57,6 +55,22 @@ jobs:
5755
-R "${{ inputs.source-repo }}" \
5856
-n "${{ inputs.source-artifact-name }}" \
5957
-D "logs-${{ inputs.source-github-run-id }}"
58+
- name: Upload logs for DB job
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: logs-${{ inputs.source-github-run-id }}
62+
path: logs-${{ inputs.source-github-run-id }}/
63+
upload-to-db:
64+
needs: fetch-logs
65+
runs-on: mysqldb
66+
steps:
67+
- name: Checkout source
68+
uses: actions/checkout@v4
69+
- name: Download logs from workflow artifact
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: logs-${{ inputs.source-github-run-id }}
73+
path: logs-${{ inputs.source-github-run-id }}
6074
- name: Upload logs to MySQL database
6175
env:
6276
ROCM_JAX_DB_HOSTNAME: ${{ secrets.ROCM_JAX_DB_HOSTNAME }}

0 commit comments

Comments
 (0)