Skip to content

Caller

Caller #2

name: Caller
on:
workflow_dispatch:
inputs:
environment:
type: choice
options:
- development
- staging
- production
outputs:
API_URL: ${{steps.api.outputs.API_URL}}

Check failure on line 13 in .github/workflows/deploy-environment.yml

View workflow run for this annotation

GitHub Actions / Caller

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-environment.yml (Line: 13, Col: 13): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.api.outputs.API_URL .github/workflows/deploy-environment.yml (Line: 14, Col: 15): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.log.outputs.LOG_LEVEL
LOG_LEVEL: ${{steps.log.outputs.LOG_LEVEL}}
jobs:
job_environment:
runs-on: ubuntu-latest
steps:
- name: api
run: echo "API_URL=${{vars.API_URL}}" >> $GITHUB_OUTPUT
- name: log
run: echo "API_URL=${{vars.LOG_LEVEL}}" >> $GITHUB_OUTPUT
- name: imprimir variables
run: |
echo "API_URL ${{steps.api.outputs.API_URL}}"
echo "LOG_LEVEL ${{steps.log.outputs.LOG_LEVEL}}"