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

working-directory doesn't support absolute path #38

Open
WentsingNee opened this issue Apr 6, 2024 · 0 comments
Open

working-directory doesn't support absolute path #38

WentsingNee opened this issue Apr 6, 2024 · 0 comments

Comments

@WentsingNee
Copy link

Thank you a lot for such a wonderful action!

In my initial version of workflow, I wrote the followings:

      - name: Clone Kerbal
        uses: actions/checkout@v4
        with:
          repository: WentsingNee/Kerbal
          path: Kerbal
          submodules: 'true'

      - name: Run Doxygen
        uses: mattnotmitt/doxygen-action@v1.9.5
        with:
          working-directory: '${{github.workspace}}/Kerbal/doxygen'
          doxyfile-path: 'Doxyfile'

but the log said that the directory cannot be found:

Job Clone Kerbal:

...
/usr/bin/git config --global --add safe.directory /home/runner/work/Kerbal/Kerbal/Kerbal
...

Job Run Doxygen:
...
+ '[' '!' -d /home/runner/work/Kerbal/Kerbal/Kerbal/doxygen ]
+ echo 'Path /home/runner/work/Kerbal/Kerbal/Kerbal/doxygen could not be found!'
Path /home/runner/work/Kerbal/Kerbal/Kerbal/doxygen could not be found!
+ exit 1

I have to change the line

working-directory: '${{github.workspace}}/Kerbal/doxygen'

to

working-directory: 'Kerbal/doxygen'

and finally solve that problem

I suggest that you can mention this issue in readme to help the latecomers and save their time

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

1 participant