Skip to content

Commit e48898f

Browse files
author
Maxim Zaytsev
authored
[DownloadGitHubReleaseV0] Update artifact-engine package (#19903)
* DownloadGitHubRelease Apply npm audit fix
1 parent 5099bc9 commit e48898f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+11299
-5679
lines changed

Tasks/DownloadGitHubReleaseV0/_buildConfigs/Node20/package-lock.json

Lines changed: 3087 additions & 2648 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/DownloadGitHubReleaseV0/_buildConfigs/Node20/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dependencies": {
2020
"@types/mocha": "^5.2.7",
2121
"@types/node": "^20.3.1",
22-
"artifact-engine": "^1.1.0",
22+
"artifact-engine": "^1.5.2",
2323
"azure-pipelines-task-lib": "^4.0.0-preview",
2424
"nock": "^9.6.1",
2525
"typed-rest-client": "^1.8.9"

Tasks/DownloadGitHubReleaseV0/package-lock.json

Lines changed: 372 additions & 370 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/DownloadGitHubReleaseV0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dependencies": {
2020
"@types/mocha": "^5.2.7",
2121
"@types/node": "^16.11.39",
22-
"artifact-engine": "^1.1.0",
22+
"artifact-engine": "^1.5.2",
2323
"azure-pipelines-task-lib": "^4.0.0-preview",
2424
"nock": "^9.6.1",
2525
"typed-rest-client": "^1.8.9"

Tasks/DownloadGitHubReleaseV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"demands": [],
1111
"version": {
1212
"Major": 0,
13-
"Minor": 238,
13+
"Minor": 240,
1414
"Patch": 0
1515
},
1616
"minimumAgentVersion": "2.144.0",

Tasks/DownloadGitHubReleaseV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"demands": [],
1111
"version": {
1212
"Major": 0,
13-
"Minor": 238,
13+
"Minor": 240,
1414
"Patch": 0
1515
},
1616
"minimumAgentVersion": "2.144.0",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|0.238.0
2-
Node20_229_3|0.238.1
1+
Default|0.240.0
2+
Node20_229_3|0.240.1
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Download GitHub Release
2+
3+
## Overview
4+
5+
The [Download GitHub Release task](https://aka.ms/AA3x715) can be used to download assets from your GitHub releases as part of your CI/CD pipeline. This task works on cross platform Azure Pipeline agents running Windows, Linux or Mac and uses GitHub APIs to access GitHub releases.
6+
7+
## Contact Information
8+
9+
Please report a problem at [Developer Community Forum](https://developercommunity.visualstudio.com/spaces/21/index.html) if you are facing problems in making this task work. You can also share feedback about the task, like, what more functionality should be added to the task, what other tasks you would like to have, at the same place.
10+
11+
## Pre-requisites for the task
12+
13+
The following pre-requisites are required for the task to work properly:
14+
15+
#### GitHub Service Connection
16+
17+
In order to perform operations on the GitHub repository, the task needs a GitHub service connection with adequate permission. If it does not exist already, you can [create a GitHub service connection](https://aka.ms/AA3am5s) in your azure pipelines project. Once the service connection is created, all you need is the name of the service connection in this task.
18+
19+
## Parameters of the task
20+
21+
* **Service Connection:** This is the name of GitHub service connection which will be used to connect to target GitHub account. You can use an existing GitHub service connection or create a new one. Note that the service connection should use OAuth or PAT for authentication.
22+
23+
* **GitHub Repository:** This is the name of the GitHub repository where the GitHub releases are to be downloaded from. E.g. `microsoft/vscode`.
24+
25+
* **Default Release version type:** The version of the GitHub Release from which the assets are downloaded. The version type can be 'Latest Release', 'Specific Version' or 'Specific Tag'.
26+
27+
* Release: This options shows up if 'Specific Version' or 'Specific Tag' is selected as Default Release version type. Based on the version type selected, Release name or the Tag needs to be provided.
28+
29+
* **Item pattern:** Minimatch pattern to filter files to be downloaded from the available release assets. To download all files within release use **.
30+
31+
* **Desitnation directory:** Path on the agent machine where the release assets will be downloaded.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"loc.friendlyName": "GitHub-Release herunterladen",
3+
"loc.helpMarkDown": "[Weitere Informationen zu dieser Aufgabe](https://aka.ms/AA3x715)",
4+
"loc.description": "Hiermit wird ein GitHub-Release aus einem Repository heruntergeladen.",
5+
"loc.instanceNameFormat": "GitHub-Release herunterladen",
6+
"loc.input.label.connection": "GitHub-Verbindung",
7+
"loc.input.help.connection": "GitHub-Dienstverbindung",
8+
"loc.input.label.userRepository": "Repository",
9+
"loc.input.help.userRepository": "Vollständiger Name des GitHub-Repositorys",
10+
"loc.input.label.defaultVersionType": "Standardversion",
11+
"loc.input.help.defaultVersionType": "Laden Sie Ressourcen aus dem neuesten Release oder bestimmte Releaseversionen/-tags herunter.",
12+
"loc.input.label.version": "Release",
13+
"loc.input.help.version": "Releaseversion/-tag für den Download",
14+
"loc.input.label.itemPattern": "Elementmuster",
15+
"loc.input.help.itemPattern": "Minimatchmuster zum Filtern von Dateien, die heruntergeladen werden sollen. Verwenden Sie **, um alle Dateien im Release herunterzuladen.",
16+
"loc.input.label.downloadPath": "Zielverzeichnis",
17+
"loc.input.help.downloadPath": "Der Pfad auf dem Agentcomputer, in den die Releaseressourcen heruntergeladen werden",
18+
"loc.messages.DownloadArtifacts": "Die Ressourcen von Release \"%s\" werden heruntergeladen von: %s",
19+
"loc.messages.ArtifactsSuccessfullyDownloaded": "Die Releaseressourcen wurden erfolgreich nach \"%s\" heruntergeladen.",
20+
"loc.messages.InvalidRelease": "Die Eingabe \"%s\" für Releaseversion/-tag ist ungültig."
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"loc.friendlyName": "Download GitHub Release",
3+
"loc.helpMarkDown": "[Learn more about this task](https://aka.ms/AA3x715)",
4+
"loc.description": "Downloads a GitHub Release from a repository",
5+
"loc.instanceNameFormat": "Download GitHub Release",
6+
"loc.input.label.connection": "GitHub Connection",
7+
"loc.input.help.connection": "GitHub service connection",
8+
"loc.input.label.userRepository": "Repository",
9+
"loc.input.help.userRepository": "GitHub repository full name",
10+
"loc.input.label.defaultVersionType": "Default version",
11+
"loc.input.help.defaultVersionType": "Download assets from latest release or specific release version/tag",
12+
"loc.input.label.version": "Release",
13+
"loc.input.help.version": "Release version/tag to download",
14+
"loc.input.label.itemPattern": "Item Pattern",
15+
"loc.input.help.itemPattern": "Minimatch pattern to filter files to be downloaded. To download all files within release use **",
16+
"loc.input.label.downloadPath": "Destination directory",
17+
"loc.input.help.downloadPath": "Path on the agent machine where the release assets will be downloaded",
18+
"loc.messages.DownloadArtifacts": "Downloading assets of release '%s' from: %s",
19+
"loc.messages.ArtifactsSuccessfullyDownloaded": "Successfully downloaded release assets to '%s'",
20+
"loc.messages.InvalidRelease": "The release version/tag input '%s' is not valid"
21+
}

0 commit comments

Comments
 (0)