Test downloading artifacts #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test downloading artifacts" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
number_of_KAD_jobs: | ||
description: "Quantity of KAD jobs" | ||
required: true | ||
default: 2 | ||
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_KAD_01 | ||
path: | | ||
expired-d/test-1.txt | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: E_KAD_02 | ||
path: | | ||
expired-d/test-2.txt | ||
download-artifacts: | ||
needs: generate-artifacts | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/filtersheroes/expired_domains_image:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- with: | ||
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
Check failure on line 40 in .github/workflows/test.yml GitHub Actions / Test downloading artifactsInvalid workflow file
|
||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
./scripts/CI/downloadArtifacts.py "E_KAD_NAMES" "$GITHUB_WORKSPACE/expired-d" | ||
ls -l ./expired-d |