generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from lelia/set-fork-url-output
Set forkUrl as Output Value
- Loading branch information
Showing
7 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ If the `checkUser` option is enabled, `forker` will check the specified GitHub o | |
|
||
For legal and compliance reasons, organizations or individuals can choose to provide an optional `licenseAllowlist` to compare against the [license of the repository](https://docs.github.com/en/rest/reference/licenses) being forked. If the license key returned by the GitHub API is not found within the provided allowlist, `forker` will exit without forking the repository, and display an error. | ||
|
||
--- | ||
|
||
## Inputs | ||
|
||
### `token` (string, required) | ||
|
@@ -79,14 +81,24 @@ A newline-delimited (`"\n"`) string representing a list of allowed [license keys | |
**Example:** `"0bsd\napache-2.0\nmit"` | ||
|
||
## Outputs | ||
|
||
### `forkUrl` (string) | ||
|
||
A string representing the HTTPS URL of the newly-forked repository. | ||
|
||
**Example:** `"https://github.com/wayfair-contribs/tremor-runtime"` | ||
|
||
--- | ||
|
||
## Usage | ||
|
||
### Typical | ||
|
||
In most cases, you'll want to use the latest stable version (eg. `v0.0.5`): | ||
In most cases, you'll want to use the latest stable version (eg. `v0.0.6`): | ||
|
||
```yaml | ||
uses: wayfair-incubator/[email protected].5 | ||
uses: wayfair-incubator/[email protected].6 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
repo: tremor-runtime | ||
|
@@ -112,7 +124,7 @@ with: | |
If you are automating the creation of forks on behalf of a GitHub organization with many users, you may wish to leverage the optional `checkUser`, `promoteUser`, and `licenseAllowlist` params: | ||
|
||
```yaml | ||
uses: wayfair-incubator/[email protected].5 | ||
uses: wayfair-incubator/[email protected].6 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
repo: tremor-runtime | ||
|
@@ -124,6 +136,8 @@ with: | |
licenseAllowlist: "0bsd\napache-2.0\nmit" | ||
``` | ||
|
||
--- | ||
|
||
## Developing | ||
|
||
> 💡 **Tip:** Please use [node.js](https://nodejs.org/en/download/releases/) v17.x or later, as well as [TypeScript](https://www.npmjs.com/package/typescript) v4.x or later. | ||
|
@@ -167,7 +181,7 @@ Then run [ncc](https://github.com/zeit/ncc) and push the results: | |
npm run package | ||
git add dist | ||
git commit -a -m "prod dependencies" | ||
git push origin releases/v0.0.5 | ||
git push origin releases/v0.0.6 | ||
``` | ||
|
||
> 💡 **Tip:** We recommend using the `--license` option for `ncc`, which will create a license file for all of the production node modules used in your project. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters