No description
  • JavaScript 91.4%
  • Shell 5.8%
  • Makefile 2.8%
Find a file
Stephen Way 030b52af70
Some checks are pending
test / unit (push) Waiting to run
test / e2e (push) Waiting to run
Repoint references from rasterstate to fjord org
Org migration: the action family now lives under fjord/. Repoints internal repo references (uses:, CI badges, docs, migration guides) at fjord/ and sets the action author to fjord. The old rasterstate copies are left in place.
2026-06-03 16:16:50 -07:00
.forgejo Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
.githooks Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
examples/workflows Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
scripts Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
src Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
tests Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
.editorconfig Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
.gitignore Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
action.yml Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
CHANGELOG.md Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
CONTRIBUTING.md Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
LICENSE Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
Makefile Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
MIGRATION.md Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
package.json Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00
README.md Repoint references from rasterstate to fjord org 2026-06-03 16:16:50 -07:00
SECURITY.md Add Forgejo-compatible download-artifact action 2026-05-28 09:05:28 -07:00

download-artifact-action

test

Download named build artifacts on Forgejo Actions runners from storage you control (S3-compatible or a directory), with no dependency on the GitHub artifact API or github.com. A drop-in port of actions/download-artifact.

Reads what fjord/upload-artifact-action writes. Same backend env (RASTER_ARTIFACTS_*).

Quick start

jobs:
  deploy:
    needs: build
    runs-on: [self-hosted, Linux]
    env:
      RASTER_ARTIFACTS_S3_BUCKET: ci-artifacts
      RASTER_ARTIFACTS_S3_ENDPOINT: https://fsn1.your-objectstorage.com
      RASTER_ARTIFACTS_S3_REGION: fsn1
      RASTER_ARTIFACTS_S3_ACCESS_KEY_ID: ${{ secrets.ARTIFACTS_KEY_ID }}
      RASTER_ARTIFACTS_S3_SECRET_ACCESS_KEY: ${{ secrets.ARTIFACTS_SECRET }}
    steps:
      - uses: https://rasterhub.com/fjord/download-artifact-action@v1
        with:
          name: dist
          path: build
      - run: ./deploy.sh build

Download every artifact for the run (one subdirectory per name):

- uses: https://rasterhub.com/fjord/download-artifact-action@v1
  with:
    path: artifacts

Inputs

Mirror actions/download-artifact@v4.

Input Required Default Description
name no Artifact to download. If omitted, all artifacts for the run.
path no workspace Destination directory.
pattern no Glob over artifact names when downloading multiple.
merge-multiple no false Extract all into path instead of per-name subdirectories.
run-id no current run Download from another workflow run.
repository no current repo Download from another repository (needs backend access to that scope).

Outputs

Output Description
download-path Absolute path where artifacts were extracted.

Behavior

  • A named download extracts directly into path.
  • Downloading all artifacts extracts each into path/<name> (or all into path with merge-multiple).
  • A named artifact that is not found is a hard error. A pattern that matches nothing is a warning.
  • The action reads the JSON metadata sidecar written on upload to find each artifact's object and compression method, so a runner without zstd can still tell when an archive needs it.

Backend configuration

Identical to the upload action: RASTER_ARTIFACTS_* (or AWS_* for credentials). See the upload action README for the full table. Point both at the same bucket and prefix.

Examples

See examples/workflows: consume in a dependent job, download all, matrix, and cross-run.

Migrating from actions/download-artifact

See MIGRATION.md.

License

MIT. See LICENSE.