-
Notifications
You must be signed in to change notification settings - Fork 16
145 lines (136 loc) · 5.63 KB
/
expedition-economy.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Economy
on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
env:
LEAGUE: Settlers
jobs:
build:
name: Update unique items economy files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'gh-pages'
# Standard Economy
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_jewel
with:
url: "https://poe.ninja/api/data/itemoverview?league=Standard&type=UniqueJewel"
target: expedition/
filename: eco_Standard_UniqueJewel.json
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_weapon
with:
url: "https://poe.ninja/api/data/itemoverview?league=Standard&type=UniqueWeapon"
target: expedition/
filename: eco_Standard_UniqueWeapon.json
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_armour
with:
url: "https://poe.ninja/api/data/itemoverview?league=Standard&type=UniqueArmour"
target: expedition/
filename: eco_Standard_UniqueArmour.json
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_accessory
with:
url: "https://poe.ninja/api/data/itemoverview?league=Standard&type=UniqueAccessory"
target: expedition/
filename: eco_Standard_UniqueAccessory.json
# Standard Hardcore Economy
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_hardcore_jewel
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore&type=UniqueJewel"
target: expedition/
filename: eco_Hardcore_UniqueJewel.json
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_hardcore_weapon
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore&type=UniqueWeapon"
target: expedition/
filename: eco_Hardcore_UniqueWeapon.json
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_hardcore_armour
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore&type=UniqueArmour"
target: expedition/
filename: eco_Hardcore_UniqueArmour.json
- uses: suisei-cn/actions-download-file@v1.3.0
id: standard_hardcore_accessory
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore&type=UniqueAccessory"
target: expedition/
filename: eco_Hardcore_UniqueAccessory.json
# League Economy
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_jewel
with:
url: "https://poe.ninja/api/data/itemoverview?league=${{ env.LEAGUE }}&type=UniqueJewel"
target: expedition/
filename: "eco_${{ env.LEAGUE }}_UniqueJewel.json"
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_weapon
with:
url: "https://poe.ninja/api/data/itemoverview?league=${{ env.LEAGUE }}&type=UniqueWeapon"
target: expedition/
filename: "eco_${{ env.LEAGUE }}_UniqueWeapon.json"
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_armour
with:
url: "https://poe.ninja/api/data/itemoverview?league=${{ env.LEAGUE }}&type=UniqueArmour"
target: expedition/
filename: "eco_${{ env.LEAGUE }}_UniqueArmour.json"
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_accessory
with:
url: "https://poe.ninja/api/data/itemoverview?league=${{ env.LEAGUE }}&type=UniqueAccessory"
target: expedition/
filename: "eco_${{ env.LEAGUE }}_UniqueAccessory.json"
# League Hardcore Economy
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_hardcore_jewel
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore ${{ env.LEAGUE }}&type=UniqueJewel"
target: expedition/
filename: "eco_Hardcore ${{ env.LEAGUE }}_UniqueJewel.json"
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_hardcore_weapon
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore ${{ env.LEAGUE }}&type=UniqueWeapon"
target: expedition/
filename: "eco_Hardcore ${{ env.LEAGUE }}_UniqueWeapon.json"
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_hardcore_armour
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore ${{ env.LEAGUE }}&type=UniqueArmour"
target: expedition/
filename: "eco_Hardcore ${{ env.LEAGUE }}_UniqueArmour.json"
- uses: suisei-cn/actions-download-file@v1.3.0
id: league_hardcore_accessory
with:
url: "https://poe.ninja/api/data/itemoverview?league=Hardcore ${{ env.LEAGUE }}&type=UniqueAccessory"
target: expedition/
filename: "eco_Hardcore ${{ env.LEAGUE }}_UniqueAccessory.json"
# Beast Economy
- uses: suisei-cn/actions-download-file@v1.3.0
id: beasts
with:
url: "https://poe.ninja/api/data/itemoverview?league=${{ env.LEAGUE }}&type=Beast&language=en"
target: beast/
filename: "beast_poe_ninja.json"
# Scarab Economy
- uses: suisei-cn/actions-download-file@v1.3.0
id: scarabs
with:
url: "https://poe.ninja/api/data/itemoverview?league=${{ env.LEAGUE }}&type=Scarab&language=en"
target: beast/
filename: "scarab_poe_ninja.json"
- run: |
date > generated.txt
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "generated"
git push