Deploy Recipes to Google Dataflow #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Recipes to Google Dataflow | ||
env: | ||
JOB_NAME: ${{ github.event.inputs.recipe_id }}-${{ github.run_id }}-${{ github.run_attempt }} | ||
# Can we sanitize the job name here to remove special characters? | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
recipe_id: | ||
description: 'The id of a single recipe to submit to Dataflow' | ||
required: true | ||
default: 'all' | ||
jobs: | ||
deploy-recipes: | ||
name: deploy-recipes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Authenticate to Google Cloud" | ||
id: "auth" | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
credentials_json: "${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}" | ||
- name: "Install dependencies" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pangeo-forge-runner | ||
- name: "Check if the workflows are there?" | ||
run: | | ||
ls -la .github/workflows | ||
# - name: "Deploy recipes" | ||
# run: | | ||
# pangeo-forge-runner bake \ | ||
# --repo=${{ github.server_url }}/${{ github.repository }}.git \ | ||
# --ref=${{ github.sha }} \ | ||
# --feedstock-subdir='feedstock' \ | ||
# --Bake.job_name=$JOB_NAME \ | ||
# --Bake.recipe_id=${{ github.event.inputs.recipe_id }} \ | ||
# -f configs/config_dataflow.py | ||
# env: | ||
# GOOGLE_APPLICATION_CREDENTIALS: "${{ steps.auth.outputs.credentials_file_path }}" | ||
check-dataflow: | ||
needs: deploy-recipes | ||
uses: leap-stc/proto_feedstock/.github/workflows/check_dataflow_jobs.yaml@main | ||
Check failure on line 47 in .github/workflows/deploy_recipe.yaml GitHub Actions / .github/workflows/deploy_recipe.yamlInvalid workflow file
|
||
with: | ||
jobname: $JOB_NAME | ||
just-another-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Just another step | ||
run: echo "This is just another step" | ||