Skip to content

リリース時にmanifestのRenovateを回すように#1140

Merged
cp-20 merged 1 commit intomainfrom
ci/run-renoteva-on-release
Dec 16, 2025
Merged

リリース時にmanifestのRenovateを回すように#1140
cp-20 merged 1 commit intomainfrom
ci/run-renoteva-on-release

Conversation

@Kentaro1043
Copy link
Copy Markdown
Contributor

なぜやるか

イメージがビルドされたらRenovateが速やかにアップデートPRを作成するようにするため

やったこと

リリース時のCIにRenovateを回すstepを追加

やらなかったこと

特になし

資料

https://github.com/traPtitech/traQ/blob/1ed60aba12479d2d773b33f3469e838046912760/.github/workflows/release.yml#L62-L72

Copilot AI review requested due to automatic review settings December 16, 2025 13:46
@github-actions
Copy link
Copy Markdown
Contributor

Preview (prod backend + PR dashboard) → https://1140.ns-preview.trapti.tech/

@cp-20 cp-20 merged commit c30bfed into main Dec 16, 2025
13 checks passed
@cp-20 cp-20 deleted the ci/run-renoteva-on-release branch December 16, 2025 14:01
Copy link
Copy Markdown

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 adds automated triggering of Renovate in the manifest repository immediately after Docker images are built and published during the release workflow. This ensures that the manifest repository is updated promptly when new images become available.

Key Changes:

  • Added a new renovate job to the release workflow that triggers after the image job completes
  • Uses GitHub API to dispatch the Renovate workflow in the traPtitech/manifest repository

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +109 to +111
- run: 'gh api --method POST -H "Accept: application/vnd.github+json" /repos/traPtitech/manifest/actions/workflows/renovate.yaml/dispatches -f "ref=main"'
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

This workflow uses a raw gh api command while the existing release-helm.yaml workflow (lines 92-101) uses actions/github-script@v8 with github.rest.actions.createWorkflowDispatch for the same purpose. Using actions/github-script is more explicit, type-safe, and maintainable. Consider using the same approach for consistency across the codebase.

Suggested change
- run: 'gh api --method POST -H "Accept: application/vnd.github+json" /repos/traPtitech/manifest/actions/workflows/renovate.yaml/dispatches -f "ref=main"'
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Dispatch Renovate workflow
uses: actions/github-script@v8
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'traPtitech',
repo: 'manifest',
workflow_id: 'renovate.yaml',
ref: 'main'
});

Copilot uses AI. Check for mistakes.
contents: read
actions: write
steps:
- run: 'gh api --method POST -H "Accept: application/vnd.github+json" /repos/traPtitech/manifest/actions/workflows/renovate.yaml/dispatches -f "ref=main"'
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

The step is missing a name attribute. Consider adding a descriptive name like "Dispatch Renovate workflow" or "Trigger manifest Renovate" for better workflow visibility and debugging in the GitHub Actions UI.

Copilot uses AI. Check for mistakes.
generate_release_notes: true

renovate:
name: Run Renovate on manifest repo
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

The renovate job will run on all workflow triggers (push to main branch, tag pushes, and workflow_call), but it should only run when an image is actually tagged and released. Consider adding the same condition as the release job to ensure the Renovate dispatch only occurs for actual releases. Without this condition, Renovate will be triggered unnecessarily on every push to the main branch.

Suggested change
name: Run Renovate on manifest repo
name: Run Renovate on manifest repo
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' || inputs.ref_name != '' }}

Copilot uses AI. Check for mistakes.
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