Skip to content

add a test pipelne

add a test pipelne #1

Workflow file for this run

name: Show Environment Variable
on:
workflow_dispatch:
workflow_call:
jobs:
create-variable:
runs-on: ubuntu-latest
outputs:
env-variable: ${{ steps.set-env-variable.outputs.env_variable }}
steps:
- name: Set Environment Variable
id: set-env-variable
run: echo "env_variable=Hello from Job 1" >> $GITHUB_ENV
show-variable:
needs: create-variable
runs-on: ubuntu-latest
steps:
- name: Display Environment Variable
run: echo "Environment Variable: ${{ needs.create-variable.outputs.env-variable }}"

Check failure on line 25 in .github/workflows/temp.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/temp.yaml

Invalid workflow file

You have an error in your yaml syntax on line 25