add a test pipelne #1
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: 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 }}" | ||