Being able to read files #1964
-
I'm looking at this action, and the other linked action for https://github.com/tj-actions/verify-changed-files I haven't been able to find a definite answer between here and Google, but is their a way to get the full path to the raw pull request file so that I can run a script to view the text in that raw file and check for certain key words? I'm not sure if that has to be supported by the action, or if there's a way to pull the raw url through google actions itself. The paths returned are the full local paths, but when I actually view the modified files in the pull request, the link goes to URLs such as Right now I've got the basic iteration going
but I'm not sure what the proper way would be to tell the script to read the changed file, and not the target repo file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Aetherinox, Unfortunately you don’t get links with either action since the repository is cloned you get the absolute path to the changed file from the project root. You can read the contents of the file using |
Beta Was this translation helpful? Give feedback.
Hi @Aetherinox, Unfortunately you don’t get links with either action since the repository is cloned you get the absolute path to the changed file from the project root.
You can read the contents of the file using
cat
or any file reader. Let me know if that helps or if you need more information.