-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.13 KB
/
ParaToGit.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
name: ParaToGit
on:
schedule:
- cron: '0 4,16 * * *'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: LocalizeLimbusCompany/Localize
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'LocalizeLimbusCompany/LocalizeLimbusCompany'
path: Temp
token: ${{ secrets.ROOT }}
- name: Run build script
id: check_error
run: |
Copy-Item -Path Temp/Localize LocalizeLimbusCompany -Force -Recurse
./LocalizeLimbusCompany/Localize/Download.ps1 ${{ secrets.PARATRANZ_ROOT }} ${{ secrets.SERVER_AUTH }}
- name: Upload Error.txt to artifact
if: steps.check_error.outputs.has_error == 'true'
uses: actions/upload-artifact@v4
with:
name: error-log
path: ./LocalizeLimbusCompany/Localize/Error.txt
- name: Cancel workflow if Error.txt exists
if: steps.check_error.outputs.has_error == 'true'
run: |
echo "Error detected, cancelling workflow"
echo ${{ steps.check_error.outputs.error }}
exit 1