forked from MihaZupan/runtime-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.24 KB
/
run-script.yml
File metadata and controls
44 lines (37 loc) · 1.24 KB
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
name: Run MihuBot script
on:
issues:
types: [opened]
jobs:
run-windows:
if: (github.actor == 'MihuBot' || github.actor == 'MihaZupan') && contains(github.event.issue.body, 'RUN_AS_GITHUB_ACTION_') && !contains(github.event.issue.title, 'ARM64')
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Run script
shell: pwsh
env:
RUNTIME_UTILS_TOKEN: ${{ secrets.RUNTIME_UTILS_TOKEN }}
run: |
cd Runner
dotnet run -c Release "${{ github.event_path }}"
run-windows-arm:
if: (github.actor == 'MihuBot' || github.actor == 'MihaZupan') && contains(github.event.issue.body, 'RUN_AS_GITHUB_ACTION_') && contains(github.event.issue.title, 'ARM64')
runs-on: windows-11-arm
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Run script
shell: pwsh
env:
RUNTIME_UTILS_TOKEN: ${{ secrets.RUNTIME_UTILS_TOKEN }}
run: |
cd Runner
dotnet run -c Release "${{ github.event_path }}"