Skip to content

chore(workflows): make release-please update major and major.minor tags#89

Merged
abannachGrafana merged 6 commits into
mainfrom
adam.bannach/remove-release-on-tag
Apr 21, 2025
Merged

chore(workflows): make release-please update major and major.minor tags#89
abannachGrafana merged 6 commits into
mainfrom
adam.bannach/remove-release-on-tag

Conversation

@abannachGrafana
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread CHANGELOG.md
* **deps:** bump actions/create-github-app-token from 1 to 2 ([#79](https://github.com/grafana/github-api-commit-action/issues/79)) ([412b51b](https://github.com/grafana/github-api-commit-action/commit/412b51bdf2e89caaf37e5b53b8fbc8a4c1c1c412))
* **deps:** bump grafana/github-api-commit-action from 0.3.0 to 0.3.1 ([#65](https://github.com/grafana/github-api-commit-action/issues/65)) ([cdc46bd](https://github.com/grafana/github-api-commit-action/commit/cdc46bd6d01c95fecdf1cf2acb3106478518d17e))
* trigger tests via workflow call, dispatch or push to main ([#75](https://github.com/grafana/github-api-commit-action/issues/75)) ([f72ba3b](https://github.com/grafana/github-api-commit-action/commit/f72ba3ba7d3a7def86ad1d8b5e7706912494e4c1))
* update changelog [bot] ([#69](https://github.com/grafana/github-api-commit-action/issues/69)) ([baa0805](https://github.com/grafana/github-api-commit-action/commit/baa08050b07ba580a957460f3a47571b532104d1))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

clearing out some cruft

@abannachGrafana abannachGrafana requested review from a team and Copilot April 21, 2025 16:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR streamlines the release workflow by removing redundant changelog bot updates and enhancing the release-please workflow to update major and major.minor tags.

  • Removed outdated changelog bot entries from CHANGELOG.md
  • Updated the release-please workflow to add steps for tagging major and minor releases and update the README

Reviewed Changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 2 comments.

File Description
CHANGELOG.md Removed repeated changelog bot updates
.github/workflows/release-please.yml Added permission configurations, outputs, and steps to handle tag updates
Files not reviewed (3)
  • .github/workflows/release-on-tag.yml: Language not supported
  • .github/workflows/update-major-release-tag.yml: Language not supported
  • docs/README.tmpl: Language not supported

Comment thread .github/workflows/release-please.yml Outdated
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"

# Delete old major and minor tag
git tag -d v${{ steps.release.outputs.major }} || true
Copy link

Copilot AI Apr 21, 2025

Choose a reason for hiding this comment

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

The workflow references 'steps.release.outputs.major' and 'steps.release.outputs.minor' in later steps, but these outputs are not defined in the outputs block. Define these outputs or update the references accordingly.

Copilot uses AI. Check for mistakes.
abannachGrafana and others added 2 commits April 21, 2025 11:19
…elease-on-tag

 Conflicts:
	.github/workflows/release-on-tag.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@abannachGrafana abannachGrafana requested a review from Copilot April 21, 2025 16:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the release-please workflow to correctly manage major and minor version tags and streamlines the changelog updates. Key changes include removing duplicate changelog update lines from CHANGELOG.md, adding steps to delete and recreate major and minor tags in the release-please workflow, and including a new readme update job that leverages the new tag outputs.

Reviewed Changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 2 comments.

File Description
CHANGELOG.md Removed duplicate changelog update entries
.github/workflows/release-please.yml Enhanced tag creation logic and added a readme update step
Files not reviewed (3)
  • .github/workflows/release-on-tag.yml: Language not supported
  • .github/workflows/update-major-release-tag.yml: Language not supported
  • docs/README.tmpl: Language not supported

Comment thread .github/workflows/release-please.yml Outdated
Comment thread .github/workflows/release-please.yml Outdated
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
Copy link

Copilot AI Apr 21, 2025

Choose a reason for hiding this comment

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

The added remote 'gh-token' is not used in subsequent git push commands (which target 'origin'). Consider either removing this remote addition or updating the push commands to utilize 'gh-token' if that is the intended behavior.

Copilot uses AI. Check for mistakes.
xiyu95
xiyu95 previously approved these changes Apr 21, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
xiyu95
xiyu95 previously approved these changes Apr 21, 2025
Copy link
Copy Markdown
Member

@Johngeorgesample Johngeorgesample left a comment

Choose a reason for hiding this comment

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

LGTM!

@abannachGrafana abannachGrafana merged commit 99b8686 into main Apr 21, 2025
15 checks passed
@abannachGrafana abannachGrafana deleted the adam.bannach/remove-release-on-tag branch April 21, 2025 16:36
Copy link
Copy Markdown
Member

@Johngeorgesample Johngeorgesample left a comment

Choose a reason for hiding this comment

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

Still LGTM

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.

4 participants