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

Add support for TCC_PROJECT_KEY and TCC_PROJECT_URL #7

Merged
merged 12 commits into from
Jul 20, 2023

Conversation

eddumelendez
Copy link
Member

@eddumelendez eddumelendez commented Jul 18, 2023

The tcc agent supports TCC_PROJECT_KEY and TCC_PROJECT_URL. By
using the GHA, those will be populated with the following default values:

  • TCC_PROJECT_KEY: GITHUB_REPOSITORY env var
  • TCC_PROJECT_URL: GITHUB_SERVER_URL/GITHUB_REPOSITORY

Also, those can be set by the action configuration by using: project-key
and project-url.

Another step was added to set the right env vars. See actions/runner#665 (comment)

Fixes #8

The tcc agent supports `TCC_PROJECT_KEY` and `TCC_PROJECT_URL`. By
using the GHA, those will be populated with the following default values:

* `TCC_PROJECT_KEY`: `GITHUB_REPOSITORY` env var
* `TCC_PROJECT_URL`: `GITHUB_SERVER_URL/GITHUB_REPOSITORY`

Also, those can be set by the action configuration by using: `project-key`
and `project-url`.
@eddumelendez eddumelendez requested a review from lanwen July 18, 2023 17:26
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
eddumelendez and others added 2 commits July 18, 2023 12:06
Co-authored-by: Kirill Merkushev <lanwen@yandex.com>
Co-authored-by: Kirill Merkushev <lanwen@yandex.com>
action.yml Outdated Show resolved Hide resolved
@eddumelendez eddumelendez force-pushed the support_project_keys branch 4 times, most recently from e11e974 to faabd24 Compare July 18, 2023 20:19
.github/workflows/test.yml Outdated Show resolved Hide resolved
@eddumelendez eddumelendez force-pushed the support_project_keys branch 9 times, most recently from 2d6b0a5 to a25c0bd Compare July 18, 2023 20:53
Co-authored-by: Kirill Merkushev <lanwen@yandex.com>
@eddumelendez eddumelendez requested a review from lanwen July 18, 2023 20:56
@lanwen lanwen merged commit e4939cd into main Jul 20, 2023
9 checks passed
@lanwen lanwen deleted the support_project_keys branch July 20, 2023 08:11
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.

Support TCC_PROJECT_KEY and TCC_PROJECT_URL in GHA
2 participants