You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Submits a Kubernetes job and then streams its logs to GitHub Actions.
3
+
4
+
inputs:
5
+
job-config-file:
6
+
description: Path to the Kubernetes job YAML
7
+
required: true
8
+
job-name:
9
+
description: The job name
10
+
required: true
11
+
12
+
runs:
13
+
using: "composite"
14
+
steps:
15
+
- name: Submit Kubernetes job
16
+
shell: bash
17
+
run: |
18
+
kubectl apply -f "${{ inputs.job-config-file }}"
19
+
20
+
- name: Wait for Kubernetes job to start
21
+
shell: bash
22
+
run: |
23
+
while [[ -n $(kubectl get pods --selector=batch.kubernetes.io/job-name=${{ inputs.job-name }} --output=jsonpath='{.items[?(@.status.phase == "Pending")].metadata.name}') ]]; do
while [[ -n $(kubectl get pods --selector=batch.kubernetes.io/job-name=${{ env.JOB_NAME }} --output=jsonpath='{.items[?(@.status.phase == "Pending")].metadata.name}') ]]; do
0 commit comments