We can envision at least two ways for how the scripts can be used on GitHub
- Use them directly in other repositories' workflows, i.e.
git clone --depth=1 releng-scripts; ./releng-scripts/foo ...
- Host the scripts in a specific repository and trigger them via
workflow_dispatch, i.e. they'd not be used directly
With the workflow_dispatch approach we'd be able to set up secrets in a single repository, which would be dispatch <ed to from other repositories. Otherwise, if we use the scripts directly we'll need to set up secrets on each repository that they are used, which seems worse.
The workflow_dispatch approach's downside is that we can't transfer files from one repository's workflow to another via workflow_dispatch, so we'd have to
- Upload the artifacts to GitHub in repository A (
actions/upload-artifact@v3)
- Trigger
workflow_dispatch to repository B
- Download the artifacts in the
dispatched workflow from repository B
Using the scripts directly seems more convenient in this regard since we can use the files directly, without having to download them after workflow_dispatch.
cc @chevdor
We can envision at least two ways for how the scripts can be used on GitHub
git clone --depth=1 releng-scripts; ./releng-scripts/foo ...workflow_dispatch, i.e. they'd not be used directlyWith the
workflow_dispatchapproach we'd be able to set up secrets in a single repository, which would bedispatch<ed to from other repositories. Otherwise, if we use the scripts directly we'll need to set up secrets on each repository that they are used, which seems worse.The
workflow_dispatchapproach's downside is that we can't transfer files from one repository's workflow to another viaworkflow_dispatch, so we'd have toactions/upload-artifact@v3)workflow_dispatchto repository Bdispatched workflow from repository BUsing the scripts directly seems more convenient in this regard since we can use the files directly, without having to download them after
workflow_dispatch.cc @chevdor