Skip to content

Commit

Permalink
Test download artifacts using wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Sep 8, 2023
1 parent ba0b392 commit 2f9f58c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Test downloading artifacts"

on:
workflow_dispatch:

jobs:
generate-artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd "$GITHUB_WORKSPACE"
mkdir ./expired-d
touch ./expired-d/test-1.txt
touch ./expired-d/test-2.txt
- uses: actions/upload-artifact@v3
with:
name: E_TEST_01
path: |
expired-d/test-1.txt
- uses: actions/upload-artifact@v3
with:
name: E_TEST_02
path: |
expired-d/test-2.txt
download-artifacts:
needs: generate-artifacts
runs-on: ubuntu-latest
container: ghcr.io/filtersheroes/rtm_image:latest
steps:
- uses: actions/checkout@v4
- run: |
gh run download ${{ github.run_id }} -p "E_TEST_*"

0 comments on commit 2f9f58c

Please sign in to comment.