Refresh artifacts #104
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
# Downloads and then uploads the artifacts to keep them from expiring. | |
name: Refresh artifacts | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * 1" # Every Monday at 12:00 UTC | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
suites: | |
uses: ./.github/workflows/list-suites.yml | |
refresh: | |
runs-on: ubuntu-latest | |
needs: suites | |
strategy: | |
fail-fast: false | |
matrix: | |
suite: ${{ fromJSON(needs.suites.outputs.suites) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download artifacts | |
run: script/download-cache.sh ${{ matrix.suite }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cache-${{ matrix.suite }} | |
path: cache/ |