-
Notifications
You must be signed in to change notification settings - Fork 57
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
Run tests workflows on all commits of a PR #142
Comments
Hi |
Hi @wojsmol, are there any alternative solutions you've considered? |
@andrii-bodnar I'm considering to disable automatic PR creation by this action and use it only to download translations from crowdin and then create PR for example using github cli, but it will be nice to fix that in that action. I wonder if correct Github token is used in push_to_branch function because we are using custom PAT to run tests on crowdin PR's - you can see that here https://github.com/joomla/core-translations/blob/08afd1f5e4802ea696f3a6ccdbb0d3ce1f7636db/.github/workflows/crowdin-v4-dl-package-translations.yml#L22-L43. |
We're having the same issue. This is related to #34 |
@andrii-bodnar Any progress on resolving this issue? |
@wojsmol probably not. Actually, I have no clear idea how to fix it. We use the user-defined |
@andrii-bodnar Personally I was thinking about moving Lines 210 to 212 in f749b05
Line 208 in f749b05
${GITHUB_ACTOR} in REPO_URL but this is hard for me to test.
|
@andrii-bodnar PR created joomla/core-translations#783 after merge we will wail until next crowdin created PR witch more then one commit. |
@andrii-bodnar As we can see on joomla/core-translations#784 this change don't fix the issue. |
@andrii-bodnar Looking further in to this function we can try to skip Lines 231 to 233 in f749b05
--no-verify should be possible to remove after passing additional input.
|
@wojsmol I'm not sure if I get you right. Do you mean removing the |
@andrii-bodnar yes |
@wojsmol just pushed the change to the test branch. Could you please try the following version hash? uses: crowdin/github-action@8a8d8c3944421259eebb52975e0a3fee672ed638 |
@andrii-bodnar PR created and referenced |
@andrii-bodnar After further testing on my side I find out that tests are running on all commits on stable crowdin github action version after adding custom PAT to checkout action like this
custom PAT is also passed into each crowdin github action invocation. This will be nice as a example. |
@wojsmol thanks a lot for finding the solution! 🚀 🎉 Already added it to the Action's Wiki - Run tests workflows on all commits of a PR |
Is your feature request related to a problem? Please describe.
Run tests workflows on commits generated in push_to_branch() function.
Describe the solution you'd like
Add a possibility to run tests workflows on commits generated in push_to_branch() function. Now this is blocked because
github.actor
is equal togithub-actions[bot]
witch is excluded from running additional workflows.Describe alternatives you've considered
None
Additional context
First commit of PR created using
create_pull_request()
function is ok and tests are run. Problem can be observed for example here joomla/core-translations#477The text was updated successfully, but these errors were encountered: