Skip to content

Artifact downloader

Actions
download an artifact
0.5.1
Latest
Star (3)

Tags

 (1)

Download Artifact Action

Actions Status Actions Status

This downloads an artifact from your build implemented in python.

Usage

Specify a repository and an artifact name to download it. To allow access you have to pass your personal access token. Optionally a name for the downloaded artifact can be passed and the time to wait for an artifact to be available for download.

Example workflow

name: My Workflow
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Download artifact from build
      uses: bettermarks/[email protected]
      with:
        repo: organization/the-repo-to-use
        token: ${{ secrets.GITHUB_TOKEN }}
        artifact_name: my-artifact
        rename: new-artifact-name    
        wait_seconds: 60  

Inputs

Input Description
repo The repository to download from
token The personal access token
artifact_name The name of the artifact to download
rename (optional) An optional name for the downloaded artifact. Defaults to artifact_name.
wait_seconds (optional) Time to wait for the artifact to be available for download. Defaults to 1 minute.

Using outputs

Check the example to see how to use the output of the action

steps:
  - name: Wait for artifact to succeed
    uses: fountainhead/[email protected]
    id: wait-for-build
    with:
      token: "${{ secrets.GITHUB_TOKEN }}"
      checkName: artifact

  - uses: actions/checkout@master
  - name: Self test
    id: selftest

    # Put your action repo here
    uses: bettermarks/action-artifact-download
    with:
      artifact_name: "${{ github.sha }}"
      token: "${{ secrets.GITHUB_TOKEN }}"
      rename: foobar

  - name: Check outputs
    run: |
      test "${{ steps.selftest.outputs.success }}" == "Artifact downloaded: ${{ github.sha }}"
      test -f foobar

Artifact downloader is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

download an artifact
0.5.1
Latest

Tags

 (1)

Artifact downloader is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.