Skip to content
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

Create usable workflows #125

Merged
merged 16 commits into from
Jun 30, 2023
Merged

Conversation

christophfroehlich
Copy link
Contributor

@christophfroehlich christophfroehlich commented Jun 12, 2023

This PR implements a reusable workflow as proposed in ros-controls/ros2_controllers#664 (comment)

This should enable CI workflows in other repositories, which can check if the docs are building fine.

As an example, this works already with ros-controls/ros2_control_demos#303

One has to explicitly state the repo in the reusable workflow, otherwise the job from the caller workflow looks inside its repo for the action/reusable workflow. (or have I missed someting?)
Because the workflow is not in the master branch, I had to use my fork -> I'll change that before the merge.

CI for this PR fails, because the Cleanup jobs switch to the master branch, where the composable action is not available obviously

@christophfroehlich christophfroehlich marked this pull request as ready for review June 13, 2023 08:47
@bmagyar
Copy link
Member

bmagyar commented Jun 20, 2023

The CI on this should be green using your fork, right?

@christophfroehlich
Copy link
Contributor Author

this one here won't go green unless it is merged into master. But in other repos, like in the linked one in the demos I think so yes

Co-authored-by: Christoph Fröhlich <[email protected]>
@bmagyar
Copy link
Member

bmagyar commented Jun 30, 2023

Let's see

@christophfroehlich
Copy link
Contributor Author

@Mergifyio backport humble

@mergify
Copy link
Contributor

mergify bot commented Aug 12, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 12, 2023
* Create usable workflow for dependencies

* Checkout repository before git config --local

* Single job only

* Use checkout

* Try composite action

* Optionally checkout PR instead of master branch

* Update comment

* Add reusable workflow for single version

* Fix repository for checkout action

* Fix repository for checkout action

* Fix repository+ref for checkout action

* try to fix source of action

* Add fetch-depth again

* Use correct head info

* Halt on errors

* use master branch ref

Co-authored-by: Christoph Fröhlich <[email protected]>

---------

Co-authored-by: Bence Magyar <[email protected]>
(cherry picked from commit e2a04ea)

# Conflicts:
#	.github/workflows/reusable-sphinx-check-single-version.yml
#	.github/workflows/sphinx-check-links.yml
#	.github/workflows/sphinx-check-warnings.yml
#	Makefile
#	make_help_scripts/deploy_defines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants