-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yml
36 lines (35 loc) · 1.04 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
name: 'Set AssemblyInfo Version'
author: 'Second Bounce'
description: 'Sets the assembly version number in the specified assembly info file(s)'
branding:
icon: 'tag'
color: 'orange'
inputs:
version:
description: 'Assembly version in SemVer format'
required: true
directory:
description: 'Directory where assembly info file is located'
default: '.\'
filename:
description: 'Filename for assembly info'
default: 'AssemblyInfo.cs'
recursive:
description: 'If `true`, update all assembly info files including in files in subdirectories'
default: true
runs:
using: composite
steps:
- shell: pwsh
id: setversion
env:
VERSION: ${{ inputs.version }}
DIRECTORY: ${{ inputs.directory }}
FILENAME: ${{ inputs.filename }}
RECURSIVE: ${{ inputs.recursive }}
RUN_NUMBER: ${{ github.run_number }}
run: ${{ github.action_path }}\SetVersion.ps1
outputs:
version:
description: Version applied to assembly info
value: ${{steps.setversion.outputs.version}}