Skip to content

Workflow dispatch vs using the scripts directly #3

@joao-paulo-parity

Description

@joao-paulo-parity

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

  1. Upload the artifacts to GitHub in repository A (actions/upload-artifact@v3)
  2. Trigger workflow_dispatch to repository B
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions