Skip to content

feat(ci): add env_vars input to _spm.yml workflow#16152

Open
ncooke3 wants to merge 15 commits into
mainfrom
support-ci-env-vars-20260501
Open

feat(ci): add env_vars input to _spm.yml workflow#16152
ncooke3 wants to merge 15 commits into
mainfrom
support-ci-env-vars-20260501

Conversation

@ncooke3
Copy link
Copy Markdown
Member

@ncooke3 ncooke3 commented May 1, 2026

Enables easier testing for PRs like: #16150

Example usage: e3f36aa

#no-changelog

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@ncooke3 ncooke3 changed the title feat(ci): ddd env_vars input to _spm.yml workflow feat(ci): add env_vars input to _spm.yml workflow May 1, 2026
Comment thread Package.swift Outdated
@ncooke3
Copy link
Copy Markdown
Member Author

ncooke3 commented May 1, 2026

/gemini review

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@ncooke3 ncooke3 requested a review from paulb777 May 1, 2026 21:45
@ncooke3 ncooke3 marked this pull request as ready for review May 1, 2026 21:45
@ncooke3 ncooke3 requested a review from a team as a code owner May 1, 2026 21:45
Copy link
Copy Markdown
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

I think you mean #16150 in the description

env_vars = json.loads(os.environ.get("CUSTOM_ENV_VARS", "{}"))
if not isinstance(env_vars, dict):
raise ValueError("env_vars must be a JSON object")
with open(os.environ["GITHUB_ENV"], "a") as f:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

how about file, key and value? Or is one character variables a python thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants