From aa3183919788c6c6445aa5f2d72761f40ec228db Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 21 Oct 2026 17:58:22 +0200 Subject: [PATCH] fix(sync-workflow-templates): sync from the .github repo of the same organization - `nextcloud-libraries/.github` merges this template unchanged - Its repositories then synced the templates of `nextcloud/.github` - Use `github.repository_owner` for the checkout and both links - Link to `HEAD`, because the default branch is `master` here and `main` in nextcloud-libraries Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Maksim Sukharev --- workflow-templates/sync-workflow-templates.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow-templates/sync-workflow-templates.yml b/workflow-templates/sync-workflow-templates.yml index 5d84aec2..7b2a61ac 100644 --- a/workflow-templates/sync-workflow-templates.yml +++ b/workflow-templates/sync-workflow-templates.yml @@ -47,7 +47,7 @@ jobs: with: persist-credentials: false path: source - repository: nextcloud/.github + repository: ${{ github.repository_owner }}/.github - name: Checkout app uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -108,7 +108,7 @@ jobs: echo "â„šī¸ Locked version: $locked_version" echo "â„šī¸ Current version: $new_version" echo "🆙 Updating existing workflow: $filename" - echo "- 🆙 Updated [$filename](https://github.com/nextcloud/.github/commits/master/workflow-templates/$filename)" >> $GITHUB_ENV + echo "- 🆙 Updated [$filename](https://github.com/${GITHUB_REPOSITORY_OWNER}/.github/commits/HEAD/workflow-templates/$filename)" >> $GITHUB_ENV cp "$workflow" "$target_file" @@ -160,7 +160,7 @@ jobs: draft: ${{ env.DRAFT_ONLY == 1 }} add-paths: .github/workflows/*.yml,.github/actions-lock.txt body: | - Automated update of all workflow templates from [nextcloud/.github](https://github.com/nextcloud/.github) + Automated update of all workflow templates from [${{ github.repository_owner }}/.github](https://github.com/${{ github.repository_owner }}/.github) ${{ env.SUMMARY }} labels: | dependencies