Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will add a reusable action base for fetching external docs contents.
Goal
Provide updated "stable" docs for parts of openHAB, that have their own indipendent release cycle.
Workflow
Reusable template action
The introduced reusable action is meant to be called from other repo based actions.
It will check for matching files based on a given configuration and remove the current existing doc files.
After that it will copy the newest available version from the external repository.
Detailled repository action
A detailed action can be added per external repository.
This action simply calls the reuseable action with a repository specific configuration.
As a proof of concept the first repository based action comes with this pr and enables this workflow for the openhab/openhabian repository.
External trigger events
The detailled repository action is able to get triggered from the external repo through the
repository_dispatch
event.This needs a personal access token, with
public_repo
access for the openhab-docs repository.The external repo can then actively trigger a docs update. (For example when a new openHABian version is released.)