-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
50 lines (47 loc) · 1.37 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'CompatHelper'
description: 'Automatically update the [compat] entries for your Julia package''s dependencies'
author: 'Dilum Aluthge and contributors'
branding:
icon: 'package'
color: 'green'
inputs:
### Required inputs
token:
description: 'A GitHub token with write access on your repository'
required: true
### Optional inputs
cmd:
description: 'The CompatHelper command to run. If you provide this input, you MUST also provide the `version` input.'
required: false
default: 'CompatHelper.main()'
ssh:
description: 'An SSH deploy key with write access on your repository'
required: false
default: ''
version:
description: 'Version of CompatHelper.jl to use'
required: false
default: '3'
runs:
using: 'composite'
steps:
- run: |
import Pkg
ENV["JULIA_PKG_SERVER"] = ""
Pkg.Registry.add("General")
Pkg.Registry.update("General")
shell: julia --color=yes {0}
- run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "${{ inputs.version }}"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- run: |
import CompatHelper
${{ inputs.cmd }}
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ inputs.token }}
COMPATHELPER_PRIV: ${{ inputs.ssh }}