{"id":19631941,"url":"https://github.com/git-for-windows/get-azure-pipelines-artifact","last_synced_at":"2025-04-28T06:33:38.186Z","repository":{"id":37055650,"uuid":"351148654","full_name":"git-for-windows/get-azure-pipelines-artifact","owner":"git-for-windows","description":"A GitHub Action that downloads and caches the specified artifact from a given Azure Pipeline","archived":false,"fork":false,"pushed_at":"2025-04-22T03:11:02.000Z","size":22944,"stargazers_count":7,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-22T05:28:13.962Z","etag":null,"topics":["actions","github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-for-windows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-24T16:25:02.000Z","updated_at":"2025-04-22T03:09:55.000Z","dependencies_parsed_at":"2022-07-20T12:17:40.611Z","dependency_job_id":"d047ec9f-5b3e-4333-8876-41e4524b3fb8","html_url":"https://github.com/git-for-windows/get-azure-pipelines-artifact","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fget-azure-pipelines-artifact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fget-azure-pipelines-artifact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fget-azure-pipelines-artifact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fget-azure-pipelines-artifact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-for-windows","download_url":"https://codeload.github.com/git-for-windows/get-azure-pipelines-artifact/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251266237,"owners_count":21561802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions"],"created_at":"2024-11-11T12:12:16.245Z","updated_at":"2025-04-28T06:33:35.604Z","avatar_url":"https://github.com/git-for-windows.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Download an artifact from an Azure Pipeline\n\nUse this Action to download an artifact from an Azure Pipeline.\n\n## Getting Started\n\n```yaml\nname: Download stuff from an Azure Pipeline\non: [push]\njobs:\n  build:\n    runs-on: ubuntu-16.04\n    steps:\n    - name: Download a build artifact from an Azure Pipeline\n      uses: git-for-windows/get-azure-pipelines-artifact@v0\n      with:\n        repository: git/git\n        definitionId: 10\n        artifact: sparse\n    - run: sudo dpkg -i sparse_*.deb\n```\n\n## Input parameters\n\n### Repository\n\nThis Action needs to know in which repository the artifact lives. Example: [https://dev.azure.com/git/git/_build](https://dev.azure.com/git/git/_build) shows the Azure Pipelines of the `git/git` repository. It can be configured like this:\n\n```yaml\n- uses: git-for-windows/get-azure-pipelines-artifact@v0\n  with:\n    repository: git/git\n```\n\n### Pipeline definition ID\n\nEvery Azure Pipeline has a numerical identifier that is part of the URL. For example, the \"Build sparse for Ubuntu\" Pipeline in `git/git` at [https://dev.azure.com/git/git/_build?definitionId=10](https://dev.azure.com/git/git/_build?definitionId=10) has the identifier `10`. It needs to be configured via the `definitionId` key.\n\n```yaml\n- uses: git-for-windows/get-azure-pipelines-artifact@v0\n  with:\n    definitionId: 10\n```\n\n### Artifact name\n\nPipelines can have an arbitrary number of artifacts, which are identified by a name. The `artifact` parameter specifies which one to download. It can be omitted if the given Pipeline run has only one artifact attached to it.\n\n### Build filters\n\nThe `reasonFilter` parameter can be added to filter by the reason for a build.\nA list of accepted reasons can be found [here](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/list?view=azure-devops-rest-6.0#buildreason). This parameter defaults to `all` if omitted.\n\n### Strip prefix\n\nPipeline artifacts can contain entire directory structures. The `stripPrefix` parameter allows filtering by a given path prefix; Any files matching that prefix will be written (after stripping the prefix), all other files will be skipped.\n\n### Output location\n\nBy default, the artifact files will be stored in the current directory. The `path` parameter can be used to override that.\n\nThis directory needs to be unless caching is turned off.\n\n### Caching\n\nTo accelerate this Action, artifacts are cached once downloaded. This can be turned off by setting the input parameter `cache` to `false`.\n\n## Developing _this_ Action\n\n\u003e First, you'll need to have a reasonably modern version of `node` handy, such as Node 12.\n\nInstall the dependencies\n\n```bash\n$ npm install\n```\n\nBuild the Action and package it for distribution\n\n```bash\n$ npm run build \u0026\u0026 npm run package\n```\n\nRun the tests :heavy_check_mark:\n\n```bash\n$ npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-for-windows%2Fget-azure-pipelines-artifact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-for-windows%2Fget-azure-pipelines-artifact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-for-windows%2Fget-azure-pipelines-artifact/lists"}