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

Added a README section on using GitHub Actions to run experiments with a private repo #665

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

ribafish
Copy link
Member

Added a README section on using GitHub Actions to run experiments with a private repo. It leverages the github actions checkout and passes that as a local git repo to the experiment actions.

This is needed as the scripts themselves are using git clone command, which will fail with a private repo since access is not configured in the env by default. This should fix errors like below, as well as explains how to do it where it's expected (instead of searching for this by issues)

Run gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable
Run # Read the action inputs

Cloning private-gha-tests
Cloning into '/home/runner/work/private-gha-tests/private-gha-tests/gradle-enterprise-gradle-build-validation/.data/01-validate-incremental-building/20240920T092821-66ed4035/build_private-gha-tests'...
fatal: could not read Username for 'https://github.com/': No such device or address
ERROR: Unable to clone git repository https://github.com/ribafish/private-gha-tests
Error: Process completed with exit code 100.

@ribafish ribafish requested a review from a team September 23, 2024 09:21
Copy link
Member

@erichaagdev erichaagdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some suggestions. The same feedback applies for Maven too.

.github/actions/gradle/README.md Outdated Show resolved Hide resolved
.github/actions/gradle/README.md Outdated Show resolved Hide resolved
@erichaagdev
Copy link
Member

@ribafish I adjusted the wording slightly. Will go ahead and merge it.

@erichaagdev erichaagdev merged commit ac91a21 into main Oct 1, 2024
3 checks passed
@erichaagdev erichaagdev deleted the gk/privateRepoReadme branch October 1, 2024 17:15
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 this pull request may close these issues.

3 participants