Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to replicate files between repositories #63

Open
apetrovYa opened this issue Oct 6, 2023 · 1 comment
Open

Not able to replicate files between repositories #63

apetrovYa opened this issue Oct 6, 2023 · 1 comment

Comments

@apetrovYa
Copy link

apetrovYa commented Oct 6, 2023

Description

This is the job for syncing the repositories:

name: Sync GitHub Directory Workflow

on:
  #  push:
  #    branches:
  #      - main
  workflow_dispatch:

jobs:
  sync-repositories:
    if: github.repository == my_org_name/terraform-module-template'
    runs-on:
      group: custom-runners
    outputs:
      repositories: ${{ steps.list-repositories.outputs.repositories }}
    steps:
      - uses: actions/checkout@v3
      - uses: derberg/manage-files-in-multiple-repositories@v2.0.0
        with:
          github_token: ${{ secrets.GH_API_TOKEN }}
          patterns_to_include: '.github'
          destination: '.github'
          # Repository Labels Very Important
          topics_to_include: terraform-module
          repos_to_ignore: terraform-module-template
          exclude_forked: true
          committer_username: ci
          committer_email: no-reply@github.com
          commit_message: "ci: replicating the .github directory from the terraform-module-template repository"

This is the log I get at run time:

Warning: Failed replicating files for this repo: Error: ENOENT: no such file or directory, unlink '/home/runner/_work/terraform-module-template/terraform-module-template/clones/terraform-aws-rds-pg-groups/.github/dependabot.yaml'

The GitHub token has the necessary permissions to be able to manage Git repositories within the organisation.

Much appreciated any help!

N.B. The GitHub runners are self-hosted in a Kubernetes cluster through the arc-gha-rs-controller Kubernetes controller.

@derberg
Copy link
Owner

derberg commented Apr 4, 2024

such small log do not help much, can you share more, best if you run in debug mode https://github.com/derberg/manage-files-in-multiple-repositories/tree/main?tab=readme-ov-file#debug

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

No branches or pull requests

2 participants