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

Does checked out files preserve file permissions? #21

Closed
mhung-lingraphica opened this issue Feb 3, 2023 · 1 comment
Closed

Does checked out files preserve file permissions? #21

mhung-lingraphica opened this issue Feb 3, 2023 · 1 comment

Comments

@mhung-lingraphica
Copy link

I am trying to use this to check out a subdirectory of my project instead of the whole thing, but I run into Error code 126:

/home/runner/work/_temp/2ddc6165-7186-415a-8d87-bc4d746f659f.sh: line 1: CICD/CreateBuildTarget.sh: Permission denied
60
Error: Process completed with exit code 126.

I had this working before, and made sure the files had the correct permissions:

myUserName@myUserNames-MacBook-Pro cicd % ls -l
total 16
-rwxr-xr-x@ 1 myUserName  staff  2239 Feb  3 11:17 CreateBuildTarget.sh
-rwxr-xr-x@ 1 myUserName  staff   449 Feb  3 11:18 DeleteBuildTarget.sh

I only made the below replacement:
Before (working):

      - name: Checkout to access bash script
        uses: actions/[email protected]

After (not working):

      - name: Checkout to access bash script
        uses: Bhacaz/checkout-files@v2
        with:
          files: CICD

Am I using this wrong and should be checking out a single file, or is something else going on?

@Bhacaz
Copy link
Owner

Bhacaz commented Feb 3, 2023

Duplicated of #18 I'll continue the conversation there.

@Bhacaz Bhacaz closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
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