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 edge case with Nightly builds right after new release #776

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MaxymVlasov
Copy link
Collaborator

@MaxymVlasov MaxymVlasov commented Jan 22, 2025

Description of your changes

Each failed nightly build occurs right when new tag released and tag point to latest commit.

To avoid that, we need to drop tag to HEAD in CI
image
image

How can we test changes

  1. Fork repo with all branches
  2. Create PR from this branch and merge to fork master
  3. Manually make new release
  4. Go to Actions -> Enable ⌛ action
  5. Trigger ⌛ action manually
    https://github.com/MaxymVlasov/pre-commit-terraform-PR776/actions/runs/12916272093

@MaxymVlasov MaxymVlasov marked this pull request as ready for review January 22, 2025 20:16
Comment on lines +338 to +341
run: >-
git tag --points-at HEAD
|
xargs git tag --delete
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the point in wrapping this one-liner to multiline?
For me it looks odd when split to three lines 🤷🏻

Suggested change
run: >-
git tag --points-at HEAD
|
xargs git tag --delete
run: git tag --points-at HEAD | xargs git tag --delete

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