Skip to content

Conversation

@hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Nov 17, 2022

After release-please opens a PR, generate the code so that the final release version stored in version.txt
is properly reflected in the generated code.

@hessjcg hessjcg requested a review from a team November 17, 2022 16:28
@hessjcg hessjcg added the generate: run Runs generate on a PR and commits the results back to the PR branch. label Nov 17, 2022
@hessjcg hessjcg force-pushed the release-please-cleanup branch from c98a07b to 1567bcb Compare November 17, 2022 16:32
@hessjcg hessjcg removed the generate: run Runs generate on a PR and commits the results back to the PR branch. label Nov 17, 2022
@hessjcg hessjcg changed the title feat: Add a release job to generate code after release-please opens a PR feat: Add a release job to generate code on release PRs GH-66 Nov 17, 2022
@hessjcg hessjcg force-pushed the release-please-cleanup branch from 229ee18 to 2ad85dc Compare November 17, 2022 17:18
echo "Generate did not cause any changes to the code. OK to proceed with the release"
else
echo "Generate updated the code. Committing the changes..."
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this safe? Would this be an unverified commit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure what kind of commit it would be. I think it is verified. The github action takes on the permissions of the actor that initiated that action.

Copy link
Collaborator

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

LGTM, however I think we should maybe double-check with the Github Automation team before merging if they have a best practice for pushing code from a Github Action as well as if there is any known issues with doing so from the release-please app's bot user.

@hessjcg hessjcg merged commit d23a484 into main Nov 28, 2022
@hessjcg hessjcg deleted the release-please-cleanup branch December 13, 2022 20:15
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.

3 participants