Skip to content

Refactor sub-actions #69

@SuperQ

Description

@SuperQ

Currently the way we use promci is that we use a top-level action that clones the promci repo so that each action can be used.

This requires manual bumping, which is additional toil and annoyance.

Let's refactor things so that we can call actions directly. For example:

publish_main:
  steps:
    - uses: prometheus/promci/publish_main@<foo>

This will require splitting out some actions to separate repos to avoid the recursive calls.

  • prometheus/promci/actions/setup_environment -> prometheus/promci-setup/environment
  • prometheus/promci/actions/save_artifacts -> prometheus/promci-setup/save_artifacts
  • prometheus/promci/actions/restore_artifacts -> prometheus/promci-setup/restore_artifacts
  • prometheus/promci/actions/publish_images -> `prometheus/promci-images
  • prometheus/promci/actions/publish_release_images -> prometheus/promci-images

We can also inline two actions that are fairly simple:
* save_artifacts
* restore_artifacts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions