File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Checks if an input is defined
2
+
3
+ description : Checks if an input is defined and outputs 'true' or 'false'.
4
+
5
+ inputs :
6
+ value :
7
+ description : value to test
8
+ required : true
9
+
10
+ outputs :
11
+ result :
12
+ description : outputs 'true' or 'false' if input value is defined or not
13
+ value : ${{ steps.check.outputs.result }}
14
+
15
+ runs :
16
+ using : composite
17
+ steps :
18
+ - shell : bash
19
+ id : check
20
+ run : |
21
+ echo "result=${{ inputs.value != '' }}" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change
1
+ name : Setup caches
2
+
3
+ description : Setup caches for go modules and build cache.
4
+
5
+ inputs :
6
+ build-cache-key :
7
+ description : build cache prefix
8
+
9
+ runs :
10
+ using : composite
11
+ steps :
12
+ - uses : actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2
13
+ with :
14
+ path : ~/go/pkg/mod
15
+ key : ${{ runner.os }}-go-pkg-mod-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
16
+ - uses : actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2
17
+ if : ${{ inputs.build-cache-key }}
18
+ with :
19
+ path : ~/.cache/go-build
20
+ key : ${{ runner.os }}-build-cache-${{ inputs.build-cache-key }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
You can’t perform that action at this time.
0 commit comments