-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
57 lines (53 loc) · 1.82 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
51
52
53
54
55
56
57
name: rmskin-build
description: packaging tool for Rainmeter User Content
# for the badge
branding:
icon: 'droplet'
color: 'blue'
inputs:
version:
description: "Version of the Rainmeter rmskin package. Defaults to last 8 digits of SHA from commit or reference tags."
required: false
default: 'auto'
title:
description: "Name of the Rainmeter rmskin package. Defaults name of repository."
required: false
default: ${{ github.event.repository.name }}
author:
description: "Account Username maintaining the rmskin package. Defaults to Username that triggered the commit."
required: false
default: ${{ github.repository_owner }}
path:
description: "Base directory of repo being packaged. Defaults to workflow's workspace path"
required: false
default: "."
dir_out:
description: "Path to save generated rmskin package. Defaults to workflow's workspace path"
required: false
default: "."
outputs:
arc_name: # path to & name of archive file that was generated
description: "name of rmskin file"
value: ${{ steps.rmskin-builder.outputs.arc_name }}
runs:
using: 'composite'
steps:
- name: setup-python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.x
update-environment: false
- name: Install rmskin-builder
shell: pwsh
run: ${{ steps.setup-python.outputs.python-path }} -m pip install rmskin-builder
- name: Run rmskin-builder
id: rmskin-builder
shell: pwsh
run: >-
${{ steps.setup-python.outputs.python-path }} -m rmskin_builder
--path "${{ inputs.path }}"
--version "${{ inputs.version }}"
--author "${{ inputs.author }}"
--title "${{ inputs.title }}"
--dir_out "${{ inputs.dir_out }}"