-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (60 loc) · 1.84 KB
/
Copy pathinputs.yml
File metadata and controls
63 lines (60 loc) · 1.84 KB
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
59
60
61
62
63
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActionsSteps (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_inputs --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------
name: inputs
on:
workflow_call:
inputs:
THIS_IS_A_INPUT:
type: string
required: false
secrets:
THIS_IS_A_SECRET:
required: false
outputs:
withOutputsISetAThing:
description: 'Some output value'
value: ${{ jobs.build.outputs.withOutputsISetAThing }}
permissions:
actions: read
checks: read
contents: read
deployments: read
id-token: none
issues: write
discussions: none
packages: none
pages: none
pull-requests: write
repository-projects: none
security-events: none
statuses: write
jobs:
build:
outputs:
withOutputsISetAThing: '${{ steps.withOutputs.outputs.iSetAThing }}'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
with:
clean: 'false'
- name: ⚒️ dotnet tool restore
run: |
dotnet tool restore
- name: With Outputs
id: withOutputs
run: |
dotnet nuke --target WithOutputs --ThisIsAInput "${{ inputs.THIS_IS_A_INPUT }}" --ThisIsAOtherVariable "${{ vars.THIS_IS_A_VARIABLE }}" --ThisIsAnotherVariable "${{ vars.THIS_IS_ANOTHER_VARIABLE }}" --THIS_IS_A_VARIABLE "${{ vars.THIS_IS_A_VARIABLE }}" --ThisIsAEnv "${{ env.THIS_IS_A_ENV || 'test' }}" --ThisIsASecret "${{ secrets.THIS_IS_A_SECRET }}" --GitHubToken "${{ secrets.GITHUB_TOKEN }}"