Skip to content

Add trigger-maintenance job to release.yml workflow#2145

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/update-release-yml-trigger
Closed

Add trigger-maintenance job to release.yml workflow#2145
Copilot wants to merge 3 commits intomainfrom
copilot/update-release-yml-trigger

Conversation

Copy link
Contributor

Copilot AI commented Oct 22, 2025

  • Explore repository structure and understand release.yml
  • Run build and tests to ensure clean baseline
  • Add repository_dispatch job to trigger maintenance workflow in githubnext/agentics
  • Test the workflow changes
  • Verify the changes
  • Configure minimal permissions for trigger-maintenance job

Changes Made

Added a new trigger-maintenance job to .github/workflows/release.yml that:

  • Runs after successful release completion
  • Uses actions/github-script to trigger a repository_dispatch event
  • Sends event to githubnext/agentics repository with maintenance event type
  • Includes payload with release information (tag, triggering repository)
  • Configured with minimal permissions (permissions: {}) following the principle of least privilege

Testing

  • ✅ Validated YAML syntax with actionlint
  • ✅ All unit tests pass
  • ✅ Minimal changes focused only on the required functionality
Original prompt

Update release.yml to trigger the "maintenance" workflow in the githubnext/agentics repository after a successful release creation.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

trigger-maintenance:
needs: release
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot configure the minimal permissions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Configured minimal permissions with permissions: {} in commit 68f662f.

Copilot AI changed the title [WIP] Update release.yml to trigger maintenance workflow after release Add trigger-maintenance job to release.yml workflow Oct 22, 2025
Copilot AI requested a review from pelikhan October 22, 2025 17:08
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan closed this Oct 22, 2025
@pelikhan pelikhan deleted the copilot/update-release-yml-trigger branch October 23, 2025 21:23
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