title: Github Actions: Running a Bash Script
body: <p>I am trying to run scripts from Github Actions and it keeps saying: No file or directory found.</p>
  <p>This is the github action:</p>
  <pre><code>name: Build And Deploy
  on:
    push:
  #     branches:
  #       - master`
  
  jobs:
    generate-build-number-deploy:
      runs-on: ubuntu-latest
      
      steps:
        - uses: actions/checkout@v3
        # https://github.com/marketplace/actions/build-number-generator
        - name: Generate build number
          uses: einaregilsson/build-number@v3
          with:
            token: ${{secrets.github_token}}
  
        - name: Print new build number
          run: echo &quot;Build number is $BUILD_NUMBER&quot;
    
        - name: Configure AWS credentials
          uses: aws-actions/configure-aws-credentials@v1
          with:
            aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
            aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
            aws-region: us-east-2
  
        - name: Print GITHUB_WORKSPACE
          run: echo ${GITHUB_WORKSPACE}
  
        - name: Build Docker
          run: |
               chmod +x &quot;${GITHUB_WORKSPACE}/../docker/build-docker.sh&quot;
               ${GITHUB_WORKSPACE}/../docker/build-docker.sh
        - name: Push Docker
          run: |
               chmod +x &quot;${GITHUB_WORKSPACE}/../docker/push-docker.sh&quot;
               ${GITHUB_WORKSPACE}/../docker/push-docker.sh
  </code></pre>
  <p>For some reason the <code>GITHUB_WORKSPACE</code> has weird path and thats why i have to do <code>${GITHUB_WORKSPACE}/../docker/push-docker.sh</code>, add <code>../</code> in the path. Is there a way to list the files or get the current working directory to look where the files actually are located?</p>
  <p>I tried doing <code>echo ${cwd}</code> and <code>echo ${pwd}</code> but it echos nothing.</p>
  <p>I have referenced the following link for running bash script:
  <a href="https://github.community/t/running-a-bash-script/141584" rel="nofollow noreferrer">https://github.community/t/running-a-bash-script/141584</a></p>