File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 55
55
required : false
56
56
type : string
57
57
default : " ."
58
+ secrets :
59
+ ssh_key :
60
+ required : false
58
61
59
62
jobs :
60
63
build :
73
76
with :
74
77
sdk : ${{inputs.dart_sdk}}
75
78
79
+ - name : 🤫 Set SSH Key
80
+ env :
81
+ ssh_key : ${{secrets.ssh_key}}
82
+ if : env.ssh_key != null
83
+ uses :
webfactory/[email protected]
84
+ with :
85
+ ssh-private-key : ${{secrets.ssh_key}}
86
+
76
87
- name : 📦 Install Dependencies
77
88
run : dart pub get
78
89
Original file line number Diff line number Diff line change 59
59
required : false
60
60
type : string
61
61
default : " !*"
62
+ secrets :
63
+ ssh_key :
64
+ required : false
62
65
63
66
jobs :
64
67
build :
80
83
cache : true
81
84
cache-key : flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
82
85
86
+ - name : 🤫 Set SSH Key
87
+ env :
88
+ ssh_key : ${{secrets.ssh_key}}
89
+ if : env.ssh_key != null
90
+ uses :
webfactory/[email protected]
91
+ with :
92
+ ssh-private-key : ${{secrets.ssh_key}}
93
+
83
94
- name : 📦 Install Dependencies
84
95
run : |
85
96
flutter pub global activate very_good_cli
Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ The Dart package workflow consists of the following steps:
97
97
98
98
** Default** ` "vm" `
99
99
100
+ ## Secrets
101
+
102
+ ### ` ssh_key `
103
+
104
+ ** Optional** An SSH key used to access private repositories when installing dependencies.
105
+
100
106
## Example Usage
101
107
102
108
``` yaml
@@ -112,4 +118,6 @@ jobs:
112
118
dart_sdk : ' stable'
113
119
platform : ' chrome,vm'
114
120
working_directory : ' examples/my_dart_package'
121
+ secrets :
122
+ ssh_key : ${{secrets.EXAMPLE_KEY}}
115
123
` ` `
Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ The Flutter package workflow consists of the following steps:
104
104
105
105
** Default** ` "!*" `
106
106
107
+ ## Secrets
108
+
109
+ ### ` ssh_key `
110
+
111
+ ** Optional** An SSH key used to access private repositories when installing dependencies.
112
+
107
113
## Example Usage
108
114
109
115
``` yaml
@@ -120,4 +126,6 @@ jobs:
120
126
flutter_version : ' 2.8.1'
121
127
working_directory : ' examples/my_flutter_package'
122
128
test_recursion : true
129
+ secrets :
130
+ ssh_key : ${{secrets.EXAMPLE_KEY}}
123
131
` ` `
You can’t perform that action at this time.
0 commit comments