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

Custom Copybara file support might be broken? #130

Open
PhilipVinc opened this issue Oct 27, 2024 · 0 comments
Open

Custom Copybara file support might be broken? #130

PhilipVinc opened this issue Oct 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PhilipVinc
Copy link

I am using the following GitHub action yml file:

on:
  push:
jobs:
  move-code:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - uses: olivr/copybara-action@v1.2.4
        with:
          ssh_key: ${{ secrets.GH_BOT_SSH_PRIV_KEY }}
          access_token: ${{ secrets.GH_BOT_GITHUB_TOKEN }}
          sot_repo: NeuralQXLab/omnia
          destination_repo: NeuralQXLab/netket_pro
          custom_config: config/copybara/copy.bara.sky

But I see a failure when running, and in debug mode the error is

##[debug]Result: '***'
##[debug]Loading env
Run olivr/[email protected]
  with:
    ssh_key: ***
    access_token: ***
    sot_repo: NeuralQXLab/omnia
    destination_repo: NeuralQXLab/netket_pro
    custom_config: config/copybara/copy.bara.sky
    push_include: **
    pr_include: **
    committer: Github Actions <[email protected]>
    copybara_image: olivr/copybara
    copybara_image_tag: latest
    create_repo: yes
##[debug]BEWARE: Debug mode is on, this could result in this action succeeding while it didn't. Check the logs.
##[debug]Save config files
/home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136182
                    const configFile = path_1.default.join(process.cwd(), this.config.customConfig);
                                                      ^
TypeError: Cannot read properties of undefined (reading 'join')
    at CopybaraAction.<anonymous> (/home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136182:55)
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136062:71
    at new Promise (<anonymous>)
    at __webpack_modules__.94675.__awaiter (/home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136058:12)
    at CopybaraAction.getCopybaraConfig (/home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136179:16)
    at CopybaraAction.<anonymous> (/home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136201:76)
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/olivr/copybara-action/v1.2.4/dist/index.js:136059:58)
Node.js v20.13.1
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run olivr/[email protected]

I'm not familiar with node, so I don't fully understand everything, but it seems to me that path in here is not set?

const configFile = path.join(process.cwd(), this.config.customConfig);

@PhilipVinc PhilipVinc added the bug Something isn't working label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant