Skip to content

Pyproject#10

Open
malmans2 wants to merge 14 commits into
mainfrom
pyproject
Open

Pyproject#10
malmans2 wants to merge 14 commits into
mainfrom
pyproject

Conversation

@malmans2

Copy link
Copy Markdown
Member

No description provided.

Comment thread git-clone/action.yml Outdated
DEFAULT_REPO_REF: ${{ inputs.repo-list }}
run: |
uv run ${{ github.action_path }}/../scripts/git-clone-ref.py ${REPO_LIST}
uv run ${{ github.action_path }}/../scripts/git-clone-ref.py ${REPO_LIST} --default-repo-ref ${DEFAULT_REPO_REF}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Looks like in the previous PR I forgot to actually pass the branch to the script

Comment thread scripts/git-clone-ref.py
Comment on lines +29 to +30
if repo_ref:
multi_options += (f"--branch {repo_ref}",)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This allows to rely on the default repo branch instead of hardcoding main as default. There's some repos that use different default branches, and others such as cdsapi use master

Comment thread scripts/git-clone-ref.py
default_repo_ref: str = typer.Option(
default="main", help="Default Git reference to check out"
),
repo_list: Annotated[

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I changed the script variable name for consistency with the action. But should not have impact has it's an argument variable

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.

1 participant