Skip to content

Conversation

Copy link

Copilot AI commented Aug 15, 2025

Problem

Contributors working on forks of the nextcloud/all-in-one repository were experiencing workflow failures with errors like "dependency-updates: All jobs were cancelled". This was happening because several automated maintenance workflows designed for the main repository were attempting to run on forks, where they would inevitably fail due to permission restrictions.

Root Cause

Seven automated workflows were running on all repositories (including forks) but were designed to perform maintainer-level tasks that only make sense in the context of the main repository:

  • Creating pull requests against the upstream repository
  • Using repository secrets and tokens
  • Performing automated dependency updates and releases

When these workflows run on forks, they fail because:

  • Forks lack permissions to create PRs against the upstream repository
  • Required secrets (GITHUB_TOKEN, COMMAND_BOT_PAT) may not be available
  • The workflows perform tasks that are redundant on forks

Solution

Added if: github.repository == 'nextcloud/all-in-one' conditions to all automated maintenance workflows to ensure they only run on the main repository. This is a common pattern in open-source projects to prevent unnecessary workflow runs on forks.

Workflows Updated:

  • dependency-updates.yml - PHP dependency updates
  • nextcloud-update.yml - Nextcloud container updates
  • update-yaml.yml - YAML file updates
  • imaginary-update.yml - Imaginary container updates
  • psalm-update-baseline.yml - Psalm baseline updates
  • talk.yml - Talk container updates
  • update-helm.yml - Helm chart updates

Impact

Contributors: No more cancellation errors when working on forks
Validation workflows: Continue to run normally on forks (linting, testing, etc.)
Main repository: All automated maintenance continues to work perfectly
Performance: Reduced unnecessary workflow runs across the fork ecosystem

This change is purely additive - no functionality is removed, and the fix prevents workflow failures that were confusing for contributors while maintaining all existing automation for maintainers.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@punkyard punkyard closed this Aug 15, 2025
@punkyard punkyard deleted the copilot/fix-dca541a9-651f-4d94-bff9-dc23802cb296 branch August 15, 2025 11:54
Copilot AI changed the title [WIP] i was asked by the Aio team to participate to the presentation of the app, added as contributor to the readme file - but i keep getting error messsages dependency-updates: All jobs were cancelled Run dependency update script dependency-update... Fix automated maintenance workflows failing on repository forks Aug 15, 2025
Copilot AI requested a review from punkyard August 15, 2025 11:59
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