Skip to content

were going doooown

were going doooown #4

name: Check Active Dataflow Jobs
on:
workflow_dispatch:
inputs:
jobname:
description: 'Dataflow job name to check'
required: true
workflow_call:
inputs:
jobname:
description: 'Dataflow job name to check'
required: true
secrets:
GCP_DATAFLOW_SERVICE_KEY:
required: true
jobs:
check-jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Cloud SDK
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}"
- name: Print the env.JOB_NAME
run: echo "JOB_NAME: ${{ env.JOB_NAME }}"

Check failure on line 29 in .github/workflows/check_dataflow_jobs.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/check_dataflow_jobs.yaml

Invalid workflow file

You have an error in your yaml syntax on line 29
# - name: Wait for Dataflow jobs to finish
# run: |
# jobname="${{ github.event.inputs.jobname }}"
# while true; do
# count=$(gcloud dataflow jobs list --status=active --filter="name:${jobname}" --format="value(id)" | wc -l)
# echo "Active Dataflow jobs: $count"
# if [ "$count" -eq "0" ]; then
# echo "No active Dataflow jobs found."
# break
# fi
# echo "Waiting for Dataflow jobs to finish..."
# sleep 30
# done