-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
58 lines (58 loc) · 2.27 KB
/
action.yaml
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
51
52
53
54
55
56
57
58
# https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections
name: 'Julia: R&R ~ Release and Register'
description: 'Automatically release and register any push to a deployment branch that updates the Julia pkg version.'
author: 'Nathan Levett'
branding:
icon: 'sunrise'
color: 'purple'
inputs:
deployment_branch:
description: 'Name of branch from which against to deploy; e.g. master|main|trunk|other'
required: false
default: 'main'
subdirectory:
description: "The path to the folder/subdirectory containing the Pkg's Project.toml"
required: false
default: '.'
changelog:
description: 'An optional changelog with which to generate notes in the release.'
required: false
default: ""
release_tag_template:
description: 'A template to generate the release tag. Exposes "<NEW_VERSION>". ("/" will be replaced with "_").'
required: false
default: "v<NEW_VERSION>"
release_name_template:
description: 'A template to generate the release name. Exposes "<NEW_VERSION>".'
required: false
default: "Version: <NEW_VERSION>"
auto_release:
description: 'Whether to automatically release your new version.'
required: false
default: true
auto_register:
description: 'Whether to automatically register your new release.'
required: false
default: true
outputs:
new_version:
description: 'The new version listed in project.'
old_version:
description: 'The old version listed in project.'
diff_from:
description: 'The sha of the "previous head of the deployment branch" that is used to check for a change in the version.'
diff_to:
description: 'The sha of the commit that is taken as the current ~ which without frobbing the head will be the github_sha.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.deployment_branch }}
- ${{ inputs.subdirectory }}
- ${{ inputs.changelog }}
- ${{ inputs.release_tag_template }}
- ${{ inputs.release_name_template }}
- ${{ inputs.auto_release }}
- ${{ inputs.auto_register }}