Skip to content

Commit

Permalink
ci: use advanced artifact dl
Browse files Browse the repository at this point in the history
Action [1] provides a more feature-rich API to download artifacts. This way we
can specify a repo and branch to download artifacts from. We need this in order
to download the artifacts produced most recently by the upstream Compositor
Modules. It is also helpful for running actions on WIP branches dependent on
another WIP branche in the upstream repo.

[1] https://github.com/dawidd6/action-download-artifact
  • Loading branch information
romangg committed Feb 15, 2024
1 parent 7cbe2f5 commit e7d1fb3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/actions/dep-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ runs:
using: "composite"
steps:
- name: Download artifact
uses: actions/download-artifact@v4
uses: dawidd6/action-download-artifact@v3
with:
name: tar-package
repository: ${{ inputs.repo }}
run-id: 7910974210
github-token: ${{ inputs.secret }}
repo: ${{ inputs.repo }}
branch: ${{ inputs.branch }}
workflow_search: true
github_token: ${{ inputs.secret }}
- name: Untar
run: tar -xf ${{ inputs.dep-name }}.tar.gz
shell: bash
Expand Down

0 comments on commit e7d1fb3

Please sign in to comment.