|
77 | 77 | exit 1 |
78 | 78 | fi |
79 | 79 |
|
80 | | - - name: Fetch anti-phishing lists |
81 | | - run: | |
82 | | - curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json -o /tmp/blacklist1.json |
83 | | - curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json -o /tmp/config.json |
84 | | - mkdir -p assets/config |
85 | | - jq -s '(.[0] + .[1].blacklist) | unique | { blacklist: . }' \ |
86 | | - /tmp/blacklist1.json /tmp/config.json \ |
87 | | - > assets/config/anti_phishing.json |
88 | | -
|
89 | | - - name: Upload anti-phishing file |
90 | | - uses: actions/upload-artifact@v4 |
91 | | - with: |
92 | | - name: anti-phishing-json |
93 | | - path: assets/config/anti_phishing.json |
94 | | - |
95 | 80 | - name: Read Flutter version |
96 | 81 | id: read_flutter |
97 | 82 | run: echo "flutter_version=$(cat .github/configs/flutter_version)" >> $GITHUB_OUTPUT |
@@ -282,26 +267,24 @@ jobs: |
282 | 267 | cache: true |
283 | 268 | cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} |
284 | 269 |
|
285 | | - - name: Remove default anti_phishing.json |
| 270 | + - name: Fetch & merge anti-phishing lists |
286 | 271 | run: | |
287 | | - rm -f assets/config/anti_phishing.json |
288 | | -
|
289 | | - - name: Download anti-phishing file |
290 | | - uses: actions/download-artifact@v4 |
291 | | - with: |
292 | | - name: anti-phishing-json |
293 | | - path: assets/config |
294 | | - |
295 | | - - name: Refresh Flutter assets manifest |
296 | | - run: | |
297 | | - touch assets/config/anti_phishing.json |
298 | | - dart pub get |
299 | | -
|
300 | | - - name: Debug anti_phishing.json |
301 | | - run: | |
302 | | - echo "→ Content assets/config:" |
303 | | - ls -l assets/config |
304 | | - cat assets/config/anti_phishing.json |
| 272 | + curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json \ |
| 273 | + -o /tmp/blacklist1.json |
| 274 | + curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json \ |
| 275 | + -o /tmp/config.json |
| 276 | + mkdir -p assets/config |
| 277 | + jq -s '(.[0] + .[1].blacklist) | unique | { blacklist: . }' \ |
| 278 | + /tmp/blacklist1.json /tmp/config.json \ |
| 279 | + > assets/config/anti_phishing.json |
| 280 | + echo "→ New anti_phishing.json:" |
| 281 | + head -n 5 assets/config/anti_phishing.json |
| 282 | +
|
| 283 | + - name: Flutter clean |
| 284 | + run: flutter clean |
| 285 | + |
| 286 | + - name: Get Flutter packages |
| 287 | + run: dart pub get |
305 | 288 |
|
306 | 289 | - name: Display Flutter version |
307 | 290 | run: flutter --version |
|
0 commit comments