File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
workflow_call :
3
3
secrets :
4
- rubygems_api_key :
4
+ secrets. rubygems_api_key :
5
5
required : false
6
6
inputs :
7
7
before_build :
29
29
default : " []"
30
30
required : false
31
31
type : string
32
+ license-decisions :
33
+ required : false
34
+ type : string
35
+ default : doc/dependency_decisions.yml
32
36
33
37
jobs :
34
38
build :
@@ -57,11 +61,26 @@ jobs:
57
61
uses : ./.github/workflows/license-compliance.yml
58
62
with :
59
63
workdir : " ${{ inputs.workdir }}"
64
+ decisions : " ${{ inputs.license-decisions }}"
65
+
66
+ all :
67
+ if : ${{ always() }}
68
+ runs-on : ubuntu-latest
69
+ name : All
70
+ needs : [build, license-compliance]
71
+ steps :
72
+ - run : |
73
+ result="${{ needs.build.result }}"
74
+ if [[ $result == "success" || $result == "skipped" ]]; then
75
+ exit 0
76
+ else
77
+ exit 1
78
+ fi
60
79
61
80
release :
62
81
needs : [build, license-compliance]
63
82
runs-on : ubuntu-latest
64
- if : ${{ secrets.rubygems_api_key != '' && contains(github.ref, 'refs/tags/v') && contains(github.ref, inputs.package) }}
83
+ if : ${{ contains(github.ref, 'refs/tags/v') && contains(github.ref, inputs.package) }}
65
84
steps :
66
85
- uses : actions/checkout@v3
67
86
- uses : cadwallion/publish-rubygems-action@master
You can’t perform that action at this time.
0 commit comments