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

ci: Fix argo workflow name conflict #930

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

ka3de
Copy link
Contributor

@ka3de ka3de commented Oct 8, 2024

With the new release process, a push to main happens pretty much at the same time as the tag generation. Notice that the same naming is used for both workflows. This naming has a suffix that is set executing the ./scripts/version script, which will retrieve the current version with the command:
git describe --dirty --tags --long --always
If this command executed for the push CI is run after the tag is created, it will generate a workflow name that conflicts with the one to be created for the tag, not allowing the tag CI/CD to create its workflow.

The fix adds an extra suffix to the workflow name that identifies the workflow "mode", dev for pushes to main, release for tags.

With the new release process, a push to main happens pretty much at the
same time as the tag generation. Notice that the same naming is used for
both workflows. This naming has a suffix that is set executing the
./scripts/version script, which will retrieve the current version with
the command:
  git describe --dirty --tags --long --always
If this command executed for the push CI is run after the tag is
created, it will generate a workflow name that conflicts with the one to
be created for the tag, not allowing the tag CI/CD to create its
workflow.

The fix adds an extra suffix to the workflow name that identifies the
workflow "mode", dev for pushes to main, release for tags.
@ka3de ka3de marked this pull request as ready for review October 8, 2024 05:52
@ka3de ka3de requested a review from a team as a code owner October 8, 2024 05:52
@ka3de ka3de merged commit 3051520 into main Oct 8, 2024
2 checks passed
@ka3de ka3de deleted the fix-argo-workflow-name-conflict branch October 8, 2024 08:59
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.

2 participants