github.com/nektos/act@v0.2.63/pkg/runner/testdata/path-handling/push.yml (about)

     1  name: path tests
     2  on: push
     3  jobs:
     4    test:
     5      runs-on: ubuntu-latest
     6      steps:
     7        - uses: actions/checkout@v3
     8  
     9        - name: "Append to $GITHUB_PATH"
    10          run: |
    11            echo "/opt/hostedtoolcache/node/18.99/x64/bin" >> $GITHUB_PATH
    12   
    13        - name: test path (after setup)
    14          run: |
    15            if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/\(x64\|arm64\)/bin" ; then
    16              echo "Node binaries not in path: $PATH"
    17              exit 1
    18            fi
    19  
    20        - id: action-with-output
    21          uses: ./path-handling/
    22  
    23        - name: test path (after local action)
    24          run: |
    25            if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/\(x64\|arm64\)/bin" ; then
    26              echo "Node binaries not in path: $PATH"
    27              exit 1
    28            fi
    29  
    30        - uses: nektos/act-test-actions/composite@main
    31          with:
    32            input: some input
    33  
    34        - name: test path (after remote action)
    35          run: |
    36            if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/\(x64\|arm64\)/bin" ; then
    37              echo "Node binaries not in path: $PATH"
    38              exit 1
    39            fi