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

feat!: update uds common gh actions to use uds run conditionals #254

Merged

Conversation

zachariahmiller
Copy link
Contributor

@zachariahmiller zachariahmiller commented Sep 27, 2024

This issue convert all the common actions into tasks and updates the workflows to all be functioning reusable (callable) workflows.

To upgrade to this version of uds-common once it is released, package developers will need to replace their existing workflows with new ones that call the callable workflows. This is being done by example already in this pr for uds-common itself, but will require slight modification in the package repos.

The specific deviations the package developer will need to make are to update the two uses blocks to be remote refs.
Specifically: uses: ./.github/workflows/callable-test.yaml would become uses: defenseunicorns/uds-common/.github/workflows/callable-test.yaml@sha
and uses: ./.github/actions/test-flavor would become uses: defenseunicorns/uds-common/.github/actions/test-flavor@sha
Similar updates will need to happen to the lint, release and doc shim workflows in each package repo. After making these changes the branch protections rules will need to be updated to match the new naming schemes.

This update will also require UDS CLI version >= 0.17.0

@zachariahmiller zachariahmiller linked an issue Sep 27, 2024 that may be closed by this pull request
@zachariahmiller zachariahmiller changed the title feat: update uds common gh actions to use maruuds run conditionals feat: update uds common gh actions to use uds run conditionals Sep 27, 2024
@zachariahmiller
Copy link
Contributor Author

publish job running (doesnt run publish since there isnt a tag/release please PR
image will post another with the tag

@zachariahmiller
Copy link
Contributor Author

Postgres repo i was testing in was missing a root level publish task like uds common has, but its executing correctly otherwise
image

image

Copy link
Contributor

@Racer159 Racer159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny thing

.github/workflows/callable-publish.yaml Show resolved Hide resolved
Racer159
Racer159 previously approved these changes Oct 4, 2024
tasks/actions.yaml Outdated Show resolved Hide resolved
Co-authored-by: Jordan McClintock <jordan@defenseunicorns.com>
@Racer159 Racer159 merged commit c9d92f0 into main Oct 4, 2024
15 checks passed
@Racer159 Racer159 deleted the 243-update-uds-common-gh-actions-to-use-maruuds-run-conditionals branch October 4, 2024 21:13
This was referenced Dec 6, 2024
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.

Update uds-common gh actions to use maru/uds run conditionals
3 participants