Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get directory detection to work at all #150

Open
juls858 opened this issue Feb 9, 2024 · 1 comment
Open

I can't get directory detection to work at all #150

juls858 opened this issue Feb 9, 2024 · 1 comment

Comments

@juls858
Copy link

juls858 commented Feb 9, 2024

  check-runtime:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ${{ inputs.project_dir }}/
    outputs:
      files_exists: ${{ steps.check-dir.outputs.files_exists }}
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Check file existence
        id: check-dir
        uses: andstor/file-existence-action@v3
        with:
          files: ./runtime/*, ./runtime, runtime/, runtime, runtime/**/*, runtime/environment.yml

      - run: ls -1

Run andstor/file-existence-action@v3

  with:
    files: ./runtime/*, ./runtime, runtime/, runtime, runtime/**/*, runtime/environment.yml
    ignore_case: false
    follow_symbolic_links: true
    fail: false
These files don't exist: ./runtime/*, runtime/**/*, ./runtime, runtime/, runtime, runtime/environment.yml

Run ls -1

environment.yml
infrastructure
requirements-local.txt
runtime
@joergi
Copy link

joergi commented Mar 18, 2024

@juls858

I found the same error, as you:

It totally ignores the working directory.

as a workaround:

 files: ${{ inputs.project_dir }}/runtime/*, ${{ inputs.project_dir }}/runtime, ${{ inputs.project_dir }}/runtime/, ${{ inputs.project_dir }}/runtime, ${{ inputs.project_dir }}/runtime/**/*, ${{ inputs.project_dir }}/runtime/environment.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants