Skip to content

Use inputs

Use inputs #1

Workflow file for this run

on:
workflow_call:
inputs:

Check failure on line 3 in .github/workflows/crossplane.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/crossplane.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
environment:
required: true
type: string
service_name:
required: true
type: string
jobs:
crossplane-terraform:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
name: Test variables
run: |
echo "1: $SERVICE_NAME"
echo "2: ${{ vars.SERVICE_NAME }}"
echo "3: ${{ env.SERVICE_NAME }}"
echo "4: ${{ inputs.service_name }}"
echo "1: $BANANA"
echo "2: ${{ vars.BANANA }}"
echo "3: ${{ env.BANANA }}"
echo "4: ${{ inputs.environment }}"