Skip to content

Add release workflow permissions#95

Merged
alecgeatches merged 3 commits intoadd/release-automationfrom
copilot/sub-pr-94
Dec 31, 2025
Merged

Add release workflow permissions#95
alecgeatches merged 3 commits intoadd/release-automationfrom
copilot/sub-pr-94

Conversation

Copy link
Contributor

Copilot AI commented Dec 31, 2025

The release workflow was missing required permissions to create tags and releases.

Changes

  • Added contents: write permission - Required by softprops/action-gh-release@v2 to create tags and releases

The workflow now properly:

  • Detects version changes by comparing HEAD^ to HEAD
  • Validates version consistency across plugin header and constant (logs warning if mismatch detected)
  • Creates tagged releases with auto-generated notes and zip artifacts
  • Skips release creation steps when no version change is detected or when versions are mismatched

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: alecgeatches <17870752+alecgeatches@users.noreply.github.com>
Copilot AI changed the title [WIP] Add release workflow automation Fix release workflow permissions and version mismatch handling Dec 31, 2025
Copilot AI requested a review from alecgeatches December 31, 2025 17:30
@alecgeatches
Copy link
Contributor

@copilot Because all following steps have a if: steps.version_check.outputs.new_version check, we don't need to exit 1 in a particular failure case.

Co-authored-by: alecgeatches <17870752+alecgeatches@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 31, 2025

@copilot Because all following steps have a if: steps.version_check.outputs.new_version check, we don't need to exit 1 in a particular failure case.

You're right - removed the exit 1 since the conditional checks on subsequent steps will prevent them from running anyway. The version mismatch will still be logged but won't fail the workflow. Fixed in commit 1c127a1.

Copilot AI changed the title Fix release workflow permissions and version mismatch handling Add release workflow permissions Dec 31, 2025
@alecgeatches alecgeatches marked this pull request as ready for review December 31, 2025 17:33
@alecgeatches alecgeatches requested a review from a team as a code owner December 31, 2025 17:33
@alecgeatches alecgeatches merged commit 12c93c4 into add/release-automation Dec 31, 2025
@alecgeatches alecgeatches deleted the copilot/sub-pr-94 branch December 31, 2025 17:33
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.

2 participants

Comments