-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (32 loc) · 1.05 KB
/
action.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
name: MaaApiConverter
author: moomiji
description: 'Build And Run MaaApiConverter'
inputs:
version:
description: 'The version of MaaFramework.'
required: true
xml:
description: 'The directory path of xml files.'
required: true
output:
description: "The directory path of MaaApiConverter output."
required: false
runs:
using: "composite"
steps:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0
8.0
- shell: bash
working-directory: ${{ github.action_path }}/src/Doxygen/
run: ln -s "${{ env.xml }}/.." ../MaaFramework && cat Update.bat | bash
env:
xml: ${{ github.workspace }}/${{ inputs.xml }}
- shell: bash
working-directory: ${{ github.action_path }}
run: sudo dotnet run --project ./src/MaaApiConverter.csproj -- "${{ env.xml }}" "${{ inputs.version }}" "${{ env.output }}"
env:
xml: ${{ github.workspace }}/${{ inputs.xml }}
output: ${{ github.workspace }}/${{ inputs.output == '' && inputs.xml || inputs.output }}