-
Notifications
You must be signed in to change notification settings - Fork 382
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
Auto Build #446
Auto Build #446
Conversation
5112758
to
1b1a8d9
Compare
As build is update on push to develop
This will not work at the moment, because of the branch protection. https://github.com/RobotWebTools/roslibjs/runs/2773549430?check_suite_focus=true#step:6:50 |
To get the it working with branch protection, either a personal acces token(PAT) should be used. Or we should allow force pushes. I don't like to allow force pushes. Leaving a PAT as the only option. As recommened by the author of the GH Action used to commit the build (https://github.com/stefanzweifel/git-auto-commit-action#push-to-protected-branches), it is better to use a seperate (bot) account for that. So anyone from @RobotWebTools/roslibjs-maintainers who wants to create/maintain this seperate account? Or do you disagree want to provide your account for this? |
@MatthijsBurgh I'm still trying to fully understand the task at hand, but does it make sense to have the auto build action run on the pull request branch before it's merged into |
That would have multiple downsides.
|
I like the idea of pushing to the branch instead of @MatthijsBurgh I have just created @RWT-bot account. Would you send me an email to jihoonlee.in at gmail dot com? So, I can send you account information. Or, what would be the good way of supporting this feature to get it done? |
The bot does require admin rights to commit to the protected branch. I have tested it on I have added an if, so the jobs don't run on pushes by the If you agree with this workflow, please approve. |
Looks good to me. Let's give it a try. |
Bumps [rollup](https://github.com/rollup/rollup) from 2.57.0 to 2.58.0. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v2.57.0...v2.58.0) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Instead of requiring the build to be up-to-date, GH actions will push the build folder when the CI procedure has resulted in a diff.
To test it, I added some commits to push on this feature branch. The commit done by GH actions: 5112758
GH actions run: https://github.com/RobotWebTools/roslibjs/runs/2758087742?check_suite_focus=true
I dropped these commits again and forced pushed. I can't guarantee this will work with the branch protection on
develop
. But merge this PR is the only way to find out. There is no other way to test this.Once approved, I will apply this to ros3djs and ros3djs too.