add job polling and pdf upload to the runner yaml
This commit is contained in:
parent
827309354c
commit
7393a7d8e3
@ -14,6 +14,10 @@ on:
|
||||
jobs:
|
||||
upload-and-run:
|
||||
runs-on: ubuntu-gitea
|
||||
container:
|
||||
image: ubuntu:latest
|
||||
volumes:
|
||||
- /home/gmgauthier/printouts:/printouts:ro
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@ -27,7 +31,7 @@ jobs:
|
||||
echo "=== Debug: Starting setup ==="
|
||||
echo "Current dir: $(pwd)"
|
||||
echo "Files in repo: $(ls -la)"
|
||||
apt-get update && apt install -y netcat-traditional
|
||||
apt-get update && apt install -y netcat-traditional python3-requests
|
||||
nc -h
|
||||
echo "=== Debug: Setup complete ==="
|
||||
|
||||
@ -84,6 +88,29 @@ jobs:
|
||||
MVS_BATCH_PASSWORD: ${{ vars.MVS_BATCH_PASSWORD }}
|
||||
MVS_HOST: "oldcomputernerd.com"
|
||||
|
||||
- name: Report Status
|
||||
- name: Poll for job completion and retrieve output
|
||||
if: ${{ steps.files.outputs.file != '' }}
|
||||
run: |
|
||||
echo "Upload/Compile complete! Check TK5 JES for JOB ${{ steps.files.outputs.member }} output."
|
||||
echo "=== Waiting for job completion ==="
|
||||
python3 poll_job.py "${{ steps.files.outputs.member }}" 600
|
||||
echo "=== Job output retrieved ==="
|
||||
env:
|
||||
MVS_CONSOLE_URL: ${{ vars.MVS_CONSOLE_URL }}
|
||||
MVS_CONSOLE_USER: ${{ vars.MVS_CONSOLE_USER }}
|
||||
MVS_CONSOLE_PASSWORD: ${{ secrets.MVS_CONSOLE_PASSWORD }}
|
||||
LINODE_SSH_HOST: ${{ vars.LINODE_SSH_HOST }}
|
||||
LINODE_PRINTOUT_DIR: ${{ vars.LINODE_PRINTOUT_DIR }}
|
||||
LOCAL_PRINTOUT_DIR: /printouts
|
||||
|
||||
- name: Upload job output as artifact
|
||||
if: ${{ steps.files.outputs.file != '' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: job-output-${{ steps.files.outputs.member }}
|
||||
path: "${{ steps.files.outputs.member }}_J*.pdf"
|
||||
if-no-files-found: warn
|
||||
|
||||
- name: Report Status
|
||||
if: ${{ steps.files.outputs.file != '' }}
|
||||
run: |
|
||||
echo "Build complete! Job output PDF has been archived as a build artifact."
|
||||
Loading…
Reference in New Issue
Block a user