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

[Documentation] Update actions documentation to note that secondary checkouts will wipe the first checkout #978

Open
unlikelyzero opened this issue Oct 21, 2022 · 0 comments · May be fixed by #979

Comments

@unlikelyzero
Copy link

I spent a considerable amount of hours trying to track down a networking bug which turned out to be just an oddity with the current github actions/checkout multi-repo documentation.

This preserves both environments: the parent project which sources the GHA and the secondary repo

      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "16"
     - uses: actions/checkout@v3
        with:
          repository: unlikelyzero/quickstart
          ref: fix-network
          path: 'quickstart'

This will wipe the first at the instance that actions/checkout is run -- including any running services in that workspace.

      - uses: actions/checkout@v3
        with:
          repository: unlikelyzero/quickstart
          ref: fix-network
          path: 'quickstart'
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "16"

I think the multi-repo readme should be updated with language to prevent headaches and heartburn.

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

Successfully merging a pull request may close this issue.

1 participant