.profile/.forgejo/workflows/update-devcard.yml
2025-05-18 20:40:41 +02:00

30 lines
No EOL
759 B
YAML

name: Devcard
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
devcard:
runs-on: docker
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Devcard
uses: https://github.com/suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9
id: downloadfile
with:
url: "https://api.daily.dev/devcards/v2/StuuJfuDSTSMX4LSIt8rF.png?type=wide&r=2gy"
target: assets/
- name: Commit Devcard
run: |
git config user.name "ACTIONS[BOT]"
git config user.email "actions@noreply@lycamail.de"
git add .
git commit -m "Update Devcard" || exit 0
git push