-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (34 loc) · 864 Bytes
/
run-script.yaml
File metadata and controls
38 lines (34 loc) · 864 Bytes
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: Run Script
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
jobs:
gradle:
defaults:
run:
shell: bash -i {0}
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
submodules: true
- name: Install sdkman
run: curl -s "https://get.sdkman.io" | bash
- name: Install kotlin
run: sdk install kotlin
- name: Install kscript
run: sdk install kscript
- name: Run script
run: kscript scaffolded-script.kts
- name: Bundle script
run: kscript --package scaffolded-script.kts
- uses: actions/upload-artifact@v1
with:
name: scaffolded-script
path: ./scaffolded-script