Skip to content

Commit

Permalink
Switch direct_asset_url to url, add direct_asset_url
Browse files Browse the repository at this point in the history
  • Loading branch information
n8felton committed Jan 24, 2024
1 parent a0e9c3f commit a84e69e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SharedProcessors/GitLabReleasesInfoProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@ class GitLabReleasesInfoProvider(Processor):
},
}
output_variables = {
"url": {
"direct_asset_url": {
"description": (
"direct_asset_url matching the `link_regex` and/or `latest` inputs."
)
},
"url": {
"description": ("url matching the `link_regex` and/or `latest` inputs.")
},
"version": {
"description": (
"Version based on the release tag_name. (Strips `v` prefix)"
Expand Down Expand Up @@ -132,7 +135,8 @@ def main(self):
release, link = self.get_release_link(
releases, regex=self.env.get("link_regex")
)
self.env["url"] = link.get("direct_asset_url")
self.env["url"] = link.get("url")
self.env["direct_asset_url"] = link.get("direct_asset_url")

# Get the version from the tag name
tag_name = release["tag_name"]
Expand Down

0 comments on commit a84e69e

Please sign in to comment.