diff --git a/.github/workflows/download_artifacts.yml b/.github/workflows/download_artifacts.yml index af77506..55c5295 100644 --- a/.github/workflows/download_artifacts.yml +++ b/.github/workflows/download_artifacts.yml @@ -1,14 +1,27 @@ +name: Download Artifacts + on: push: branches: - main -name: get artifacts - # You may pin to the exact commit or the version. - # uses: MichaelMelena/list-artifacts@a1757aa2b864e29ea9f042f3ca8b4ac17fdd508b - uses: MichaelMelena/list-artifacts@v1.0.1 - with: - # github access token - GITHUB_TOKEN: # optional, default is ${{ github.token }} - # - repository: # optional, default is ${{ github.repository }} - + +jobs: + download-artifacts: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: List artifacts + id: list-artifacts + uses: MichaelMelena/list-artifacts@v1.0.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }} + + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: wetter2.zip + path: ./artifacts