-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1016 Bytes
/
Build-Module.yml
File metadata and controls
39 lines (35 loc) · 1016 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
39
name: Build-Module
on:
workflow_call:
inputs:
Name:
type: string
description: The name of the module to process. Scripts default to the repository name if nothing is specified.
required: false
ArtifactName:
type: string
description: Name of the artifact to upload.
required: false
default: module
WorkingDirectory:
type: string
description: The working directory where the script will run from.
required: false
default: '.'
permissions:
contents: read # to checkout the repository
jobs:
Build-Module:
name: Build-Module
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout Code
uses: actions/checkout@v5
- name: Build module
uses: PSModule/Build-PSModule@v4
with:
Name: ${{ inputs.Name }}
ArtifactName: ${{ inputs.ArtifactName }}
WorkingDirectory: ${{ inputs.WorkingDirectory }}