-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
[Feature] Support issue comment created trigger scenario in pull request #1667
Comments
HI @hansarh you can use the Here is an example: - name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v39
with:
sha: ${{ inputs.sha }}
base_sha: ${{ steps.branch-deploy.outputs.base_ref }}
files: '${{inputs.srcdir}}/**' |
Thanks for the reply. I've tried passing in the I'm using fetch depth 0 in the checkout action. Any ideas to how I can fix this? |
Hi @hansarh, okay looks like this might not be fully supported yet. I'll reopen this issue and add support for passing the branch names instead of the commit sha |
Is this feature missing in the latest version?
Is your feature request related to a problem? Please describe.
I'm using the branch deploy action which is triggered on in Pull requests:
For this trigger the github context is the default branch which I'm changing to the PR branch by using the
ref
output of branch-deploy.I'm using the
sha
output of branch deploy as input forsha
in this action, but it seems like it only checks for changes against the previous commit in this scenario.Describe the solution you'd like?
I want it to work more like the PR scenario where it checks against the default branch or the base_sha of the PR branch. I guess it would work if I was able to in addition input the
base_sha
, but I only havebase_ref
as an output from the branch deploy action.Is there any way you see I can achieve this?
Describe alternatives you've considered?
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: