Skip to content

A GitHub action that can be used to download and extract dependencies during workflow jobs.

License

Notifications You must be signed in to change notification settings

teddyking/dependency-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

dependency-action

A GitHub action that can be used to download and extract dependencies during workflow jobs.

Usage

Simply add a step to a job in your workflow, as follows:

name: my-example-workflow
on: [push]
jobs:
  test:
    name: unit-test
    runs-on: ubuntu-latest
    steps:
    - name: Checkout master
      uses: actions/checkout@master
    - name: Download test dependencies
      uses: teddyking/dependency-action@master
      with:
        deps: https://dep1.tar.gz,https://dep2.txz
    - name: Run tests
      ...

The deps input is a comma-separated list of URLs that point to dependency files. Supported filetypes = .tgz, .tar.gz, .txz and .tar.xz.

The action will download and extract the files to $HOME (/github/home), so that they can be used during any following steps.