1
1
Fork 0

Workflows

This commit is contained in:
jpk 2024-02-23 13:44:19 +01:00
parent 207db273f8
commit 76f661bccd
2 changed files with 46 additions and 0 deletions

46
.gitea/workflows/cron.yml Normal file
View File

@ -0,0 +1,46 @@
name: Diablo 4 Armory
run-name: ${{gitea.actor}} d4armory task
on:
schedule:
- cron: "4 0 * * *"
env:
D4ARMORY_ENV: prod
jobs:
sync:
name: "Sync with d4armory.io"
runs-on: ubuntu-latest
container:
image: git.goatpr0n.de/jpk/d4armorystash:latest
credentials:
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGES_TOKEN }}
steps:
- name: Setup Environment
run: |
apk add openssh nodejs
- uses: actions/checkout@v3
- name: Tool Version
run: d4armory --version
- name: Fetch Armory
run: d4armory fetch armory
- name: Fetch Clan
run: d4armory fetch clan
- name: Evaluate Armory
run: d4armory evaluate armory
- name: Archiving Armory
run: d4armory archive armory
- name: Archiveing Clan
run: d4armory archive clan
- name: GIT Commit Push Artifacts
run: |
git config --global user.name "Ghost in the Shell"
git config --global user.email "gits@goat.foo"
git pull origin master
git push origin HEAD:master