Skip to content

chore(ci): automate tag creation after release PR is merged#2967

Merged
t00ts merged 1 commit intomainfrom
t00ts/automate-release-tag
Sep 17, 2025
Merged

chore(ci): automate tag creation after release PR is merged#2967
t00ts merged 1 commit intomainfrom
t00ts/automate-release-tag

Conversation

@t00ts
Copy link
Contributor

@t00ts t00ts commented Aug 26, 2025

Our release pipeline right now has an intermediate manual step which I'm looking to automate. Goal is that anyone -with no prior knowledge of how this process works- can just execute the release.sh script, approve the PR, and everything is taken care of automatically.

Before (manual process):

  1. Run release.sh → creates branch and PR
  2. Manually approve/merge PR ✅
  3. Manual step: Pull from main, create tag, push tag
  4. Tag triggers workflows

After (automated):

  1. Run release.sh → creates branch and PR
  2. Manually approve/merge PR ✅
  3. Automatic: Workflow detects merge, creates tag, pushes tag
  4. Tag triggers workflows

@t00ts t00ts marked this pull request as ready for review September 2, 2025 08:05
@t00ts t00ts requested a review from a team as a code owner September 2, 2025 08:05
Copy link
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

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

LGTM.

The only thing I see we would lose is the signature on the release tag -- which we do have now if Git is configured correctly on our development environment. Not a huge loss, though, we can probably live with that.

@t00ts
Copy link
Contributor Author

t00ts commented Sep 3, 2025

The only thing I see we would lose is the signature on the release tag

Agree, I think we can live with it. But we could also set up GPG key as repository secret and configure it. If we consider it worthwhile I can look into it!

@kkovaacs

@kkovaacs
Copy link
Contributor

kkovaacs commented Sep 3, 2025

The only thing I see we would lose is the signature on the release tag

Agree, I think we can live with it. But we could also set up GPG key as repository secret and configure it. If we consider it worthwhile I can look into it!

@kkovaacs

I wouldn't bother with that for now.

BTW, one more thing: are we sure git push origin ${{ steps.extract_version.outputs.tag }} would have the credentials required to push the tag into the repository?

@t00ts
Copy link
Contributor Author

t00ts commented Sep 10, 2025

are we sure [...] would have the credentials required to push the tag into the repository?

I'm not 100% sure, but from what I've read, hopefully this should let it go through:

permissions:
  contents: write

@t00ts t00ts merged commit 06d5717 into main Sep 17, 2025
8 checks passed
@t00ts t00ts deleted the t00ts/automate-release-tag branch September 17, 2025 09:48
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