Skip to content

Test env context

Test env context #13

Workflow file for this run

name: Test env context
on:
workflow_dispatch:
inputs:
ref:
type: string
default: main
description: "The branch, tag, or SHA to checkout"
bool1:
type: boolean
description: "test flag #1"
bool2:
type: boolean
description: "test flag #2"
jobs:
run:
name: Test env context
runs-on: ubuntu-latest
steps:
- name: test env context
env:
test1: ${{ inputs.bool1 || '' }}
test2: ${{ inputs.bool2 || '' }}
run: |
export test3=yay3
echo "env.test1: ${{ env.test1 || 'boo1' }}"
echo "env.test2: ${{ env.test2 || 'boo2' }}"
echo "env.test3: ${{ env.test3 || 'boo3' }}"