initial setup
Some checks failed
MVS Upload & Execute / upload-and-run (push) Failing after 8s

This commit is contained in:
Greg Gauthier 2025-10-19 13:34:26 +01:00
commit 861c4034d6
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
name: MVS Upload & Execute
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
upload-and-run:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Find changed source files
id: files
run: |
# List changed .c or .bas files (last commit)
CHANGED_FILES=$(git diff --name-only HEAD~1 | grep -E '\.(c|bas)$' | head -1)
if [ -z "$CHANGED_FILES" ]; then
echo "No C/BAS files changed; skipping."
exit 0
fi
echo "file=$CHANGED_FILES" >> $GITHUB_OUTPUT
echo "member=$(basename $CHANGED_FILES .c)" >> $GITHUB_OUTPUT # Or .bas
- name: Upload to PDS and Submit JCL
if: steps.files.outputs.file != ''
run: |
python3 mvs_job.py "${{ steps.files.outputs.file }}" "@05054.SRCLIB.C" "${{ steps.files.outputs.member }}" "COMPILE"
env:
MVS_HOST: "oldcomputernerd.com"
- name: Report Status
run: |
echo "Upload/Compile complete! Check TK5 JES for JOB ${{ steps.files.outputs.member }} output."

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.git/
.idea/