[test] back to v4 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: actions-syntax-test | |
# Controls when the action will run. | |
on: | |
workflow_dispatch: | |
push: | |
env: | |
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }} | |
jobs: | |
multi-checkout: | |
runs-on: ubuntu-latest | |
steps: | |
- name: GITHUB_WORKSPACE, the default working directory on the runner for steps | |
run: echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}" | |
- uses: actions/checkout@main | |
- name: GITHUB_WORKSPACE, the default location of your repository when using the checkout action. | |
run: echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}, assert equals to /home/runner/work/${GITHUB_REPOSITORY_NAME}/${GITHUB_REPOSITORY_NAME}"; ls | |
- uses: actions/checkout@main | |
with: | |
repository: davidkhala/davidkhala | |
- run: echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}, assert not equals to"; /bin/pwd | |
name: GITHUB_WORKSPACE will not change with multiple checkout |