-
Notifications
You must be signed in to change notification settings - Fork 731
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/aris/issue_3902_add_scripts_to_ci #4216
Conversation
…ings. It will run every Monday at 00:00. It will open two PRs and will be able to optimal update/delete them according to changes with the base branch
d92d5fa
to
6cee887
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
Can I ask you to remove the two lines referencing the 2 scripts in this file?
Where is it disabled? |
It is disabled by default, it needs some modifications to support it, I can enhance the workflow to support it, do you think we need the tests on those PRs? |
if these workflows create a PR, won't those PRs run the default set of tasks? https://github.com/vector-im/element-android/blob/develop/.github/workflows/tests.yml#L4 there's no filtering (from what I can tell!) |
I think they will not, they need special access for that (github access token), I asked @bmarty in the comment above if we want the tests to run in order to enhance the workflow! |
@@ -0,0 +1,69 @@ | |||
name: Sync Data From External Sources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arg, there is a typo in the file name :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soruces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the file to fix the typo and we can merge the PR.
Thanks!
I agree with both approaches! If we want all tests to run I can enhance it anytime, no worries |
It has been done directly on the develop branch IFAIU in d263409. It could have been part of this PR. |
You are totally right! It might be good to add a Branch Protection Rule to prevent this to happen again. |
Fixes #3902
Implement a new github workflow to run :
every Monday at 00:00 UTC and create two PRs:
How the automated cron action behaves:
If there are changes (i.e. a diff exists with the checked-out base branch), the changes will be pushed to a new branch and a pull request created.
If there are no changes (i.e. no diff exists with the checked-out base branch), no pull request will be created and the action exits silently.
If a pull request already exists and there are no further changes (i.e. no diff with the current pull request branch) then the action exits silently.
If a pull request exists and new changes on the base branch make the pull request unnecessary (i.e. there is no longer a diff between the pull request branch and the base), the pull request is automatically closed. Additionally, if delete-branch is set to true the branch will be deleted.
Further workflows(Like Unit tests, Builds APK etc) on the generated PRs are disabled, we can enable them with the appropriate configuration if needed