summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/windows-prepend-path/push.yml
blob: cf5026a6b6e7fbcc833bba45e6f9286d9d62429d (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
34
on:
  push:
defaults:
  run:
    shell: pwsh
jobs:
  test:
    runs-on: windows-latest
    steps:
    - run: |
        mkdir build
        echo '@echo off' > build/test.cmd
        echo 'echo Hi' >> build/test.cmd
        mkdir build2
        echo '@echo off' > build2/test2.cmd
        echo 'echo test2' >> build2/test2.cmd
    - run: |
        echo '${{ tojson(runner) }}'
        ls
        echo '${{ github.workspace }}'
      working-directory: ${{ github.workspace }}\build
    - run: |
        echo $env:GITHUB_PATH
        echo '${{ github.workspace }}\build' > $env:GITHUB_PATH
        cat $env:GITHUB_PATH
    - run: |
        echo $env:PATH
        test
    - run: |
        echo "PATH=$env:PATH;${{ github.workspace }}\build2" > $env:GITHUB_ENV
    - run: |
        echo $env:PATH
        test
        test2