Download DLRG assets #115
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
on: | |
schedule: | |
- cron: "15 9 * * *" | |
workflow_dispatch: | |
name: Download DLRG assets | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
download: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: install dependencies | |
run: npm install -g tsx | |
- name: download assets | |
run: npx tsx scripts/download_assets.ts | |
- name: Create/Update Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
add-paths: public/dlrg-assets | |
branch: update/assets | |
assignees: tristankechlo | |
reviewers: tristankechlo | |
title: "Update der DLRG-Assets" | |
body: "Die Assets von `api.dlrg.net` und `dlrg.de` wurden aktualisiert." | |
commit-message: "Update der DLRG-Assets" | |
author: tristankechlo <66692834+tristankechlo@users.noreply.github.com> | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
labels: "changed assets" |