-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (50 loc) · 1.83 KB
/
update_persistence.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Persistence Update
on:
workflow_dispatch:
inputs:
version:
description: "Game version"
required: true
release:
description: "Game release"
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Prefetch docker images
run: |
docker pull stelzo/doduda-umbu:amd64
docker pull stelzo/assetstudio-cli:amd64
- name: Build
run: go build -v .
- name: Run and Update
run: |
./doduda --headless --ignore mountsimages --ignore itemsimages --release ${{ github.event.inputs.release }}
./doduda map --headless --persistence-dir persistent --release ${{ github.event.inputs.release }}
git config --global user.name 'stelzo'
git config --global user.email '[email protected]'
git add persistent
git commit -m "update persistent files" || true
git push
- name: Notify Dofus 2 repository
if: startsWith(github.event.inputs.version, '2')
env:
GH_TOKEN: ${{ secrets.PAT }}
run: gh workflow run release --repo dofusdude/dofus2-${{ github.event.inputs.release }} -f version=${{ github.event.inputs.version }}
- name: Notify Dofus 3 repository
if: startsWith(github.event.inputs.version, '3')
env:
GH_TOKEN: ${{ secrets.PAT }}
run: |
if [[ "${{ github.event.inputs.release }}" == "dofus3" || "${{ github.event.inputs.release }}" == "main" ]]; then
REPO="dofusdude/dofus3-main"
else
REPO="dofusdude/dofus3-beta"
fi
gh workflow run release --repo $REPO -f version=${{ github.event.inputs.version }}