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

[sc-157321] Allow designating dir in github action #294

Conversation

jazanne
Copy link
Contributor

@jazanne jazanne commented Nov 9, 2022

This is completely optional, but is useful if someone checks out multiple repos in their action.

For example, this git-gatsby workflow used to check out multiple repos internal repos

--

Dev notes

this must use env override and not github action input because of how env variable is used to find the configuration file etc.

@jazanne jazanne requested review from a team November 9, 2022 16:56
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #157321: github action should allow dir to be specified.

Comment on lines 27 to 29
dir:
description: "Path to existing checkout of the repository. You may use this if your action checkouts multiple repositories. The default value is `$GITHUB_WORKSPACE`."
required: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't set an explicit default sting here, because it reads the default from environment variable $GITHUB_WORKSPACE

@jazanne jazanne marked this pull request as draft November 9, 2022 17:13
build/metadata/github-actions/README.md Outdated Show resolved Hide resolved
build/metadata/github-actions/action.yml Outdated Show resolved Hide resolved
@jazanne jazanne force-pushed the jwhite/sc-157321/github-action-should-allow-dir-to-be-specified branch from 8fdabc6 to bf6a0a9 Compare November 9, 2022 18:21
@jazanne jazanne requested a review from mmrj November 9, 2022 18:50
@jazanne
Copy link
Contributor Author

jazanne commented Nov 9, 2022

@mmrj i had to change how this works, sorry to make ya re-review!

@jazanne
Copy link
Contributor Author

jazanne commented Nov 9, 2022

@InTheCloudDan wasn't sure how to test this since, if you have thoughts i'd love to hear them.

@InTheCloudDan
Copy link
Contributor

@jazanne yeah this is an interesting one, I'm not really sure what would be the best way to it. Maybe just a single unit test confirming what's set is correctly passed in??

build/metadata/github-actions/README.md Outdated Show resolved Hide resolved
build/metadata/github-actions/README.md Outdated Show resolved Hide resolved
@jazanne jazanne closed this Apr 25, 2023
@jazanne jazanne deleted the jwhite/sc-157321/github-action-should-allow-dir-to-be-specified branch April 25, 2023 17:19
@jazanne jazanne restored the jwhite/sc-157321/github-action-should-allow-dir-to-be-specified branch December 4, 2023 15:11
@jazanne jazanne reopened this Dec 4, 2023
@jazanne jazanne requested review from a team December 4, 2023 15:11
@jazanne jazanne marked this pull request as draft December 4, 2023 15:11
jazanne and others added 4 commits December 4, 2023 07:11
Co-authored-by: Molly <molly.jones@launchdarkly.com>
Co-authored-by: Molly <molly.jones@launchdarkly.com>
@jazanne jazanne force-pushed the jwhite/sc-157321/github-action-should-allow-dir-to-be-specified branch from 13303a4 to 05e66d4 Compare December 4, 2023 15:11
@jazanne jazanne marked this pull request as ready for review February 14, 2024 17:41
@jazanne jazanne marked this pull request as draft February 14, 2024 17:41
@jazanne
Copy link
Contributor Author

jazanne commented Mar 19, 2024

not high priority

@jazanne jazanne closed this Mar 19, 2024
@jazanne jazanne deleted the jwhite/sc-157321/github-action-should-allow-dir-to-be-specified branch March 19, 2024 17:26
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.

None yet

4 participants