Skip to content

Commit

Permalink
Fix issue with extra-labels and extra-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Apr 23, 2024
1 parent ddb3b31 commit aa1e86a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94286,7 +94286,6 @@ var FlakeHubPushAction = class {
this.repository = inputs_exports.getString("repository");
this.directory = inputs_exports.getString("directory");
this.gitRoot = inputs_exports.getString("git-root");
this.extraLabels = inputs_exports.getString("extra-labels") === "" ? inputs_exports.getString("extra-tags") : "";
this.spdxExpression = inputs_exports.getString("spdx-expression");
this.errorOnConflict = inputs_exports.getBool("error-on-conflict");
this.includeOutputPaths = inputs_exports.getBool("include-output-paths");
Expand All @@ -94295,6 +94294,12 @@ var FlakeHubPushAction = class {
this.name = inputs_exports.getStringOrNull("name");
this.rollingMinor = inputs_exports.getNumberOrNull("rolling-minor");
}
// extra-tags is deprecated but we still honor it
get extraLabels() {
const labels = inputs_exports.getString("extra-labels");
const tags = inputs_exports.getString("extra-tags");
return labels !== "" ? labels : tags;
}
// We first check for a value using the `source-binary` input and fall back to the
// now-deprecated `flakehub-push-binary`
get sourceBinary() {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

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

Loading

0 comments on commit aa1e86a

Please sign in to comment.