diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..ba05fcac --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +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: + env: + GH_TOKEN: ${{ github.token }} + needs: generate-artifacts + runs-on: ubuntu-latest + container: ghcr.io/filtersheroes/rtm_image:latest + steps: + - uses: actions/checkout@v4 + - run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + gh run download ${{ github.run_id }} -p "E_TEST_*"