Skip to content

Improve update-schedule workflow to prevent branch divergence#55210

Open
perashanid wants to merge 1 commit intokubernetes:mainfrom
perashanid:fix/update-schedule-workflow-54940
Open

Improve update-schedule workflow to prevent branch divergence#55210
perashanid wants to merge 1 commit intokubernetes:mainfrom
perashanid:fix/update-schedule-workflow-54940

Conversation

@perashanid
Copy link
Copy Markdown

@perashanid perashanid commented Apr 1, 2026

This PR improves the update-schedule.yml workflow to prevent future failures caused by diverged branches.

PROBLEM:
The workflow has been failing because:

  1. The update-schedule branch has diverged from main
  2. Branch protection rules prevent force-pushing
  3. The workflow cannot update the branch, causing silent failures

CHANGES MADE:

  • Added explicit ref: main to the checkout step to ensure the workflow always starts from the latest main branch
  • This ensures the workflow creates changes based on the current main branch state

IMPORTANT NOTE:
This PR alone will not fix the current failure. A maintainer with appropriate permissions needs to delete the stale update-schedule branch first. Once deleted, this improved workflow will:

  1. Start fresh from main
  2. Create a new update-schedule branch with the latest changes
  3. Prevent future divergence issues

TESTING:
After the stale branch is deleted by a maintainer:

  • The workflow should run successfully
  • It will create a new PR with schedule updates
  • Future runs will work correctly

Fixes #54940

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 1, 2026
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Apr 1, 2026
@k8s-ci-robot k8s-ci-robot requested a review from salaxander April 1, 2026 06:14
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign salaxander for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 1, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2026

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 7321bbb
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/69ccb7c5ae725a00089d3da7
😎 Deploy Preview https://deploy-preview-55210--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update update-schedule workflow have been failing

2 participants