summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/environment-variables/push.yml
blob: 37218ad137206c060415be23af4614854f09476f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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