Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: Allow missing commit metadata to be ignored in releases #5678

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

Merged
merged 7 commits into from
Jan 11, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jan 11, 2023

The release script is currently failing, this fixes that:

./scripts/release.sh --patch
Fetching main and tags from origin...
ERROR: Metadata missing for commit 41cefef9

@mafredri mafredri self-assigned this Jan 11, 2023
@mafredri mafredri requested a review from deansheather January 11, 2023 19:24
Comment on lines 40 to 43
# Temporary workaround for commits on `main` without a PR, we can remove this
# once we ensure all commits for a release will have a PR.
# Also see .github/workflow/release.yml.
export CODER_IGNORE_MISSING_COMMIT_METADATA=1
Copy link
Member

Choose a reason for hiding this comment

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

We probably don't need this since we can just set it manually ourselves, less to remember to manually undo later on.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm.. good idea! Then I'll just turn this into an action input 🤔. Then we can default to require metadata.

@mafredri mafredri changed the title ci: Ignore missing commit metadata in releases (for now) ci: Allow missing commit metadata to be ignored in releases Jan 11, 2023
@mafredri mafredri enabled auto-merge (squash) January 11, 2023 20:11
@mafredri mafredri merged commit c0d9e32 into main Jan 11, 2023
@mafredri mafredri deleted the mafredri/ci-release-allow-missing-metadata branch January 11, 2023 20:14
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants