-
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 2.26 KB
/
update-beta-updatexml-files.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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
name: Replace beta updat.xml for Windows, macOS and Linux
on:
workflow_dispatch:
inputs:
win-x86_64-update-xml:
description: 'Windows x86_64 update.xml url'
required: true
linux-x86_64-update-xml:
description: 'Linux x86_64 update.xml url'
required: true
macOS-Universal-update-xml:
description: 'macOS Universal update.xml url'
required: true
jobs:
replace:
name: Replace beta update.xml for Windows, macOS and Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.PAT }}
- name: download update.xml
# Donloaded file name is fixed vanila name
run: |
curl -L -o WINNT-x86_64.xml ${{ github.event.inputs.win-x86_64-update-xml }}
curl -L -o LINUX-x86_64.xml ${{ github.event.inputs.linux-x86_64-update-xml }}
curl -L -o DARWIN-Universal.xml ${{ github.event.inputs.macOS-Universal-update-xml }}
- name: config git
run: |
git config --global user.name "surapunoyousei"
git config --global user.email "ryosukeusuusu@gmail.com"
- name: move update.xml
run: |
mkdir -p ./browser/beta/WINNT/x86_64/
mv WINNT-x86_64.xml ./browser/beta/WINNT/x86_64/update.xml
mkdir -p ./browser/beta/Linux/x86_64/
mv LINUX-x86_64.xml ./browser/beta/Linux/x86_64/update.xml
mkdir -p ./browser/beta/Darwin/x86_64/
cp DARWIN-Universal.xml ./browser/beta/Darwin/x86_64/update.xml
mkdir -p ./browser/beta/Darwin/aarch64/
mv DARWIN-Universal.xml ./browser/beta/Darwin/aarch64/update.xml
- name: Replace update.xml
run: |
git add .
git commit -m "Update Floorp Daylight"
git pull -r
git push origin