Skip to content

Commit

Permalink
Regenerate dist
Browse files Browse the repository at this point in the history
  • Loading branch information
aried3r committed Aug 26, 2024
2 parents 31fd5f2 + 3c7ac5a commit 76e36b9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ This action expects the following parameters.
Sensitive information, especially `api-key`, should be [set as encrypted secrets](https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables) (as can be seen in the examples above); otherwise, they'll be public to anyone browsing your repository's source code and CI logs.

By default, a build will be associated with all project versions whose _release ref pattern_ (as configured in the Ketryx project settings) matches the current commit (based on the environment variable `GITHUB_SHA` provided by GitHub); e.g., for the default release ref pattern of `refs/tags/v#`, if you have a tag `refs/tags/v1.0` and a version named "1.0", that tag is associated with the version, and hence builds executed on that tag are associated with the version as well. For more granular control, either `version` or `commit-sha` can be set.
By default, a build will be associated with all project versions whose _release ref pattern_ (as configured in the Ketryx project settings) matches the current commit (based on the environment variable `GITHUB_SHA` provided by GitHub); e.g., for the default release ref pattern of `refs/tags/v#`, if you have a tag `refs/tags/v1.0` and a version named "1.0", that tag is associated with the version, and hence builds executed on that tag are associated with the version as well. For more granular control, either `version` or `commit-sha` can be set.

> [!NOTE]
> When both `version` and `commit-sha` are set, `version` takes precedence and `commit-sha` is ignored.

| Parameter | Description | Required | Example |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export function readActionInput(): ActionInput {
);
const checkReleaseStatus = core.getBooleanInput('check-release-status');

if (version && commitSha) {
core.info(
'Both `version` and `commit-sha` are specified. The `commit-sha` parameter will be ignored.'
);
}

return {
ketryxUrl,
project,
Expand Down

0 comments on commit 76e36b9

Please sign in to comment.