Giter VIP home page Giter VIP logo

Comments (1)

lucascosti avatar lucascosti commented on July 1, 2024

I was testing this tool for docs today, and I came upon this issue too.

Without a destination org created, I ran a number of unsuccessful sync commands that populated the cache with more than one repo.

When I figured out that I needed to create the org, and then did a sync command only specifying one repo, it uploaded all the previously cached repos in the cache folder to the new org.

I can see this being a big problem if someone caches many different actions, and then runs a sync command only specifying a single one, the tool will upload all of them

Repo commands:

❯ ./actions-sync sync \
    --cache-dir "cache" \
    --destination-token $token \
    --destination-url "https://lucascosti-01e44a9a1d48ed64e.qaboot.net" \
    --repo-name "nohomers/no-homers-hello-world-docker-action"
pulling nohomers/no-homers-hello-world-docker-action to cache/nohomers/no-homers-hello-world-docker-action ...
fetching * refs for nohomers/no-homers-hello-world-docker-action ...
syncing `nohomers/no-homers-hello-world-docker-action`
error creating github repository `nohomers/no-homers-hello-world-docker-action`: error creating repository: POST https://lucascosti-01e44a9a1d48ed64e.qaboot.net/api/v3/orgs/nohomers/repos: 404 Not Found []


❯ ./actions-sync sync \
    --cache-dir "cache" \
    --destination-token $token \
    --destination-url "https://lucascosti-01e44a9a1d48ed64e.qaboot.net" \
    --repo-name "nohomers/javascript-action-test2"
pulling nohomers/javascript-action-test2 to cache/nohomers/javascript-action-test2 ...
fetching * refs for nohomers/javascript-action-test2 ...
syncing `nohomers/javascript-action-test2`
error creating github repository `nohomers/javascript-action-test2`: error creating repository: POST https://lucascosti-01e44a9a1d48ed64e.qaboot.net/api/v3/orgs/nohomers/repos: 404 Not Found []


###### nohomers org was created via the UI

❯ ./actions-sync sync \
    --cache-dir "cache" \
    --destination-token $token \
    --destination-url "https://lucascosti-01e44a9a1d48ed64e.qaboot.net" \
    --repo-name "nohomers/javascript-action-test2"
fetching * refs for nohomers/javascript-action-test2 ...
syncing `nohomers/javascript-action-test2`
successfully synced `nohomers/javascript-action-test2`
syncing `nohomers/no-homers-hello-world-docker-action`
successfully synced `nohomers/no-homers-hello-world-docker-action`

from actions-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.