Skip to content

Commit

Permalink
fix(repo): empty matrix job id and secrets typo
Browse files Browse the repository at this point in the history
* fix(repo): empty matrix job identifier

Ensure empty / null matrix does not pollute job identifier.

* fix(repo): secrets typo
  • Loading branch information
fjnoyp authored Oct 11, 2023
1 parent 957da6f commit bac5e96
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/composite_actions/log_cw_metric/dist/main.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/composite_actions/log_cw_metric/dist/main.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/amplify_datastore_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
jobs:
ios:
uses: ./.github/workflows/flutter_ios.yaml
secrets: inhert
secrets: inherit
with:
example-directory: packages/amplify_datastore/example
package-name: amplify_datastore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amplify_db_common_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
jobs:
ios:
uses: ./.github/workflows/flutter_ios.yaml
secrets: inhert
secrets: inherit
with:
example-directory: packages/common/amplify_db_common/example
package-name: amplify_db_common
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amplify_native_legacy_wrapper_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
jobs:
ios:
uses: ./.github/workflows/flutter_ios.yaml
secrets: inhert
secrets: inherit
with:
example-directory: packages/amplify_native_legacy_wrapper/example
package-name: amplify_native_legacy_wrapper
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amplify_push_notifications_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
jobs:
ios:
uses: ./.github/workflows/flutter_ios.yaml
secrets: inhert
secrets: inherit
with:
example-directory: packages/notifications/push/amplify_push_notifications/example
package-name: amplify_push_notifications
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amplify_secure_storage_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
jobs:
ios:
uses: ./.github/workflows/flutter_ios.yaml
secrets: inhert
secrets: inherit
with:
example-directory: packages/secure_storage/amplify_secure_storage/example
package-name: amplify_secure_storage
Expand Down
4 changes: 2 additions & 2 deletions actions/bin/log_cw_metric.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Future<void> logMetric() async {

// Parse the matrix string (input is raw json string with " and \n)
String? parseMatrixInput(String matrixRawInput) {
if (matrixRawInput.isEmpty) {
if (matrixRawInput.isEmpty || matrixRawInput == '{}') {
return null;
}

Expand All @@ -40,7 +40,7 @@ Future<void> logMetric() async {
final matrixValues = parseMatrixInput(matrixRawInput);

final jobIdentifier =
('${github.context.job} ${matrixValues == null ? '' : '($matrixValues)'}')
('${github.context.job} ${(matrixValues == null || matrixValues.isEmpty) ? '' : '($matrixValues)'}')
.trim();

core.info('Job identifier: $jobIdentifier');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ concurrency:
jobs:
ios:
uses: ./.github/workflows/$iosWorkflow
secrets: inhert
secrets: inherit
with:
example-directory: $repoRelativePath/example
package-name: ${package.name}
Expand Down

0 comments on commit bac5e96

Please sign in to comment.