Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: semantic release failure workaround #358

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

gfranxman
Copy link
Member

@gfranxman gfranxman commented Aug 26, 2024

These changes are intended to allow the ci semantic release process to push its tags and changes from bumping the version back into the protected branch (main).

Example of such failure: https://github.com/sixfeetup/scaf/actions/runs/10490831281/job/29058471741

update actions/checkout version and add CI_VERSION_WORKAROUND
 environment variables

 - Update the version of actions/checkout being used in semantic-release GitHub workflow from v3 to
 v4.
 - Add new environment variables CI_VERSION_WORKAROUND_APP_ID
 - Add new secret  CI_VERSION_WORKAROUND_APP_PRIVATE_KEY
during the semantic release workflow

Updates the Semantic Release workflow to include a workaround for pushing tags to a protected
branch.
Adds a step to create a GitHub App token using the `actions/create-github-app-token` action.
Updates the checkout action to use the generated token and fetches the full git history.
Adds an additional usage of the generated app token in the Semantic Release run step.
Comments out the previously-used credentials in favor of the app token.
@gfranxman gfranxman changed the title Gfranxman/354 semanic release failure workaround Fix: semanic release failure workaround Aug 26, 2024
@gfranxman gfranxman changed the title Fix: semanic release failure workaround ci: semanic release failure workaround Aug 26, 2024
@gfranxman gfranxman changed the title ci: semanic release failure workaround ci: semantic release failure workaround Aug 26, 2024
@gfranxman gfranxman linked an issue Aug 26, 2024 that may be closed by this pull request
@gfranxman gfranxman requested a review from rochecompaan August 26, 2024 20:48
Copy link
Contributor

@rochecompaan rochecompaan left a comment

Choose a reason for hiding this comment

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

Cool! So, what GitHub app is used here? Are there any docs on this workaround?

@daveoconnor daveoconnor merged commit f239012 into main Sep 4, 2024
7 of 9 checks passed
@daveoconnor daveoconnor deleted the gfranxman/354-semanic-release-failure-workaround branch September 4, 2024 03:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "semantic-release" CI failures on merges to main
3 participants