Skip to content

Add version bump automation #357

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 2 commits into from
Apr 21, 2021

Conversation

kmcquade
Copy link
Collaborator

What does this PR do?

Basically the same as salesforce/aws-allowlister#73.

  • Adds a GitHub action to bump $project_name/bin/version.py by patch (major.minor.patch) immediately after a release so the next release will be a new version. This way I don't have to do this manually.
  • It also runs on workflow_dispatch so I can trigger this from the GitHub actions UI directly.

The process for releasing a new version is now as follows:

  • Go to the releases tab, observe that the release drafter GitHub action has created a draft release for you. Hit publish as you did before. Observe that after the new version is published, the path $project_name/bin/version.py will be updated. This way, you can just publish new versions by following the release drafter workflow without having to update the version.py file at all.

What gif best describes this PR or how it makes you feel?

image

Completion checklist

@kmcquade kmcquade added the automation Items related to improving delivery, gitops-ish, etc. label Apr 21, 2021
@kmcquade kmcquade self-assigned this Apr 21, 2021
@kmcquade kmcquade merged commit 8a754ad into salesforce:master Apr 21, 2021
@kmcquade kmcquade deleted the add-version-bump-automation branch April 21, 2021 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Items related to improving delivery, gitops-ish, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant