use project dir instead of /github/workspace (#567)

This commit is contained in:
rockandska
2021-03-29 06:32:45 +02:00
committed by GitHub
parent 6c258cf40d
commit 6cde8f64dc
4 changed files with 20 additions and 21 deletions

View File

@@ -16,8 +16,8 @@ jobs:
args: echo ${INPUT_SOMEKEY} | grep somevalue
- run: ls
- run: echo 'hello world'
- run: echo ${GITHUB_SHA} >> /github/sha.txt
- run: cat /github/sha.txt | grep ${GITHUB_SHA}
- run: echo ${GITHUB_SHA} >> $(dirname "${GITHUB_WORKSPACE}")/sha.txt
- run: cat $(dirname "${GITHUB_WORKSPACE}")/sha.txt | grep ${GITHUB_SHA}
build:
runs-on: ubuntu-latest
needs: [check]

View File

@@ -6,12 +6,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ls -alFt /github/workspace/workdir
- run: '[[ "$(pwd)" == "/github/workspace/workdir" ]]'
- run: ls -alFt "${GITHUB_WORKSPACE}/workdir"
- run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}/workdir" ]]'
working-directory: workdir
noworkdir:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: '[[ "$(pwd)" == "/github/workspace" ]]'
- run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}" ]]'