Comments (1)
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)
- 32-bit bundles are broken while running the sync HOT 2
- Validation Exception While Running actions-sync from K8s CronJob
- Validation Exception While Running actions-sync from K8s CronJob HOT 3
- GitHub actions sync fails for an existing organization HOT 1
- actions-sync tries to create an organization despite the organization existing HOT 8
- Can't sync specific repository HOT 2
- Reference delta not found error when pulling a repo HOT 10
- optional parameter --destination-token? HOT 4
- Remove requirement on PAT and allow Application Access Token too HOT 3
- Easier to fetch Actions org HOT 4
- How could I synchronize an action repo which requires authentication? HOT 2
- Tracking: Support syncing the release assets as well HOT 2
- How are checksums calculated HOT 2
- Default branch of synchronized repository is wrong when source has master as default branch HOT 4
- authorization failed while pushing HOT 1
- hacked this is not me--close this
- Feature Request - allow sync to a GHEC Organization to enable allowlists for GHEC. HOT 2
- Feature Request - Support for syncing actions from private repos HOT 8
- Feature Request: Dissable actions inside synced action HOT 3
- Scope for fine-grained PAT HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-sync.