mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-21 18:11:06 +00:00
parent
68e74447c3
commit
12c0f8eb8e
3 changed files with 35 additions and 10 deletions
33
act/runner/testdata/environment-variables/push.yml
vendored
Normal file
33
act/runner/testdata/environment-variables/push.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: environment variables
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Test on job level
|
||||
run: |
|
||||
echo \$UPPER=$UPPER
|
||||
echo \$upper=$upper
|
||||
echo \$LOWER=$LOWER
|
||||
echo \$lower=$lower
|
||||
[[ "$UPPER" = "UPPER" ]] || exit 1
|
||||
[[ "$upper" = "" ]] || exit 1
|
||||
[[ "$LOWER" = "" ]] || exit 1
|
||||
[[ "$lower" = "lower" ]] || exit 1
|
||||
- name: Test on step level
|
||||
run: |
|
||||
echo \$UPPER=$UPPER
|
||||
echo \$upper=$upper
|
||||
echo \$LOWER=$LOWER
|
||||
echo \$lower=$lower
|
||||
[[ "$UPPER" = "upper" ]] || exit 1
|
||||
[[ "$upper" = "" ]] || exit 1
|
||||
[[ "$LOWER" = "" ]] || exit 1
|
||||
[[ "$lower" = "LOWER" ]] || exit 1
|
||||
env:
|
||||
UPPER: upper
|
||||
lower: LOWER
|
||||
env:
|
||||
UPPER: UPPER
|
||||
lower: lower
|
Loading…
Add table
Add a link
Reference in a new issue