Migrate uses of ::set-output in code-analyzer to setOutput. (#35895)

* Migrate uses of ::set-output to setOutput.
This commit is contained in:
Sam Seay 2022-12-12 19:41:00 +13:00 committed by GitHub
parent 2cd799e76a
commit dedbf7b492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 101 additions and 68 deletions

View File

@ -385,6 +385,9 @@ importers:
webpack: 5.70.0_webpack-cli@3.3.12
webpack-cli: 3.3.12_webpack@5.70.0
packages/js/create-extension:
specifiers: {}
packages/js/csv-export:
specifiers:
'@babel/core': ^7.17.5
@ -1872,6 +1875,7 @@ importers:
tools/code-analyzer:
specifiers:
'@actions/core': ^1.10.0
'@commander-js/extra-typings': ^0.1.0
'@tsconfig/node16': ^1.0.3
'@types/node': ^16.9.4
@ -1887,6 +1891,7 @@ importers:
typescript: ^4.8.3
uuid: ^8.3.2
dependencies:
'@actions/core': 1.10.0
'@commander-js/extra-typings': 0.1.0_commander@9.4.0
'@tsconfig/node16': 1.0.3
'@types/uuid': 8.3.4
@ -2104,6 +2109,18 @@ importers:
packages:
/@actions/core/1.10.0:
resolution: {integrity: sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==}
dependencies:
'@actions/http-client': 2.0.1
uuid: 8.3.2
dev: false
/@actions/http-client/2.0.1:
resolution: {integrity: sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==}
dependencies:
tunnel: 0.0.6
/@ampproject/remapping/2.1.2:
resolution: {integrity: sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==}
engines: {node: '>=6.0.0'}
@ -3445,7 +3462,7 @@ packages:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/7.16.7_@babel+core@7.16.12:
@ -3455,7 +3472,7 @@ packages:
'@babel/core': ^7.0.0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/7.16.7_@babel+core@7.17.8:
@ -3744,7 +3761,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.12.9
dev: true
@ -3755,7 +3772,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.16.12
dev: false
@ -3808,7 +3825,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-export-namespace-from': 7.8.3_@babel+core@7.12.9
dev: true
@ -3819,7 +3836,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-export-namespace-from': 7.8.3_@babel+core@7.16.12
dev: false
@ -3862,7 +3879,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.12.9
dev: true
@ -3873,7 +3890,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.16.12
dev: false
@ -3916,7 +3933,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.12.9
dev: true
@ -3927,7 +3944,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.16.12
dev: false
@ -4023,7 +4040,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.12.9
dev: true
@ -4034,7 +4051,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.16.12
dev: false
@ -4157,7 +4174,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.12.9
dev: true
@ -4168,7 +4185,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
'@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.16.12
dev: false
@ -4295,7 +4312,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-create-class-features-plugin': 7.19.0_@babel+core@7.12.9
'@babel/helper-create-class-features-plugin': 7.17.6_@babel+core@7.12.9
'@babel/helper-plugin-utils': 7.19.0
transitivePeerDependencies:
- supports-color
@ -4308,7 +4325,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-create-class-features-plugin': 7.19.0_@babel+core@7.16.12
'@babel/helper-create-class-features-plugin': 7.17.6_@babel+core@7.16.12
'@babel/helper-plugin-utils': 7.19.0
transitivePeerDependencies:
- supports-color
@ -5001,7 +5018,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-arrow-functions/7.16.7_@babel+core@7.16.12:
@ -5011,7 +5028,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-arrow-functions/7.16.7_@babel+core@7.17.8:
@ -5119,7 +5136,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-block-scoped-functions/7.16.7_@babel+core@7.16.12:
@ -5129,7 +5146,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-block-scoped-functions/7.16.7_@babel+core@7.17.8:
@ -5168,7 +5185,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-block-scoping/7.16.7_@babel+core@7.16.12:
@ -5178,7 +5195,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-block-scoping/7.16.7_@babel+core@7.17.8:
@ -5226,12 +5243,12 @@ packages:
dependencies:
'@babel/core': 7.12.9
'@babel/helper-annotate-as-pure': 7.16.7
'@babel/helper-environment-visitor': 7.16.7
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-function-name': 7.16.7
'@babel/helper-optimise-call-expression': 7.16.7
'@babel/helper-plugin-utils': 7.18.9
'@babel/helper-replace-supers': 7.16.7
'@babel/helper-split-export-declaration': 7.16.7
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-replace-supers': 7.19.1
'@babel/helper-split-export-declaration': 7.18.6
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@ -5245,12 +5262,12 @@ packages:
dependencies:
'@babel/core': 7.16.12
'@babel/helper-annotate-as-pure': 7.16.7
'@babel/helper-environment-visitor': 7.16.7
'@babel/helper-environment-visitor': 7.18.9
'@babel/helper-function-name': 7.16.7
'@babel/helper-optimise-call-expression': 7.16.7
'@babel/helper-plugin-utils': 7.18.9
'@babel/helper-replace-supers': 7.16.7
'@babel/helper-split-export-declaration': 7.16.7
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-replace-supers': 7.19.1
'@babel/helper-split-export-declaration': 7.18.6
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@ -5311,7 +5328,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-computed-properties/7.16.7_@babel+core@7.16.12:
@ -5321,7 +5338,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-computed-properties/7.16.7_@babel+core@7.17.8:
@ -5360,7 +5377,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-destructuring/7.17.7_@babel+core@7.16.12:
@ -5370,7 +5387,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-destructuring/7.17.7_@babel+core@7.17.8:
@ -5485,7 +5502,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-duplicate-keys/7.16.7_@babel+core@7.16.12:
@ -5495,7 +5512,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-duplicate-keys/7.16.7_@babel+core@7.17.8:
@ -5598,7 +5615,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-for-of/7.16.7_@babel+core@7.16.12:
@ -5608,7 +5625,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-for-of/7.16.7_@babel+core@7.17.8:
@ -5705,7 +5722,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-literals/7.16.7_@babel+core@7.16.12:
@ -5715,7 +5732,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-literals/7.16.7_@babel+core@7.17.8:
@ -5754,7 +5771,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-member-expression-literals/7.16.7_@babel+core@7.16.12:
@ -5764,7 +5781,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-member-expression-literals/7.16.7_@babel+core@7.17.8:
@ -6138,7 +6155,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-new-target/7.16.7_@babel+core@7.16.12:
@ -6148,7 +6165,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-new-target/7.16.7_@babel+core@7.17.8:
@ -6310,7 +6327,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-property-literals/7.16.7_@babel+core@7.16.12:
@ -6320,7 +6337,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-property-literals/7.16.7_@babel+core@7.17.8:
@ -6522,7 +6539,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-reserved-words/7.16.7_@babel+core@7.16.12:
@ -6532,7 +6549,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-reserved-words/7.16.7_@babel+core@7.17.8:
@ -6638,7 +6655,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-shorthand-properties/7.16.7_@babel+core@7.16.12:
@ -6648,7 +6665,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-shorthand-properties/7.16.7_@babel+core@7.17.8:
@ -6741,7 +6758,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-sticky-regex/7.16.7_@babel+core@7.16.12:
@ -6751,7 +6768,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-sticky-regex/7.16.7_@babel+core@7.17.8:
@ -6790,7 +6807,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-template-literals/7.16.7_@babel+core@7.16.12:
@ -6800,7 +6817,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-template-literals/7.16.7_@babel+core@7.17.8:
@ -6839,7 +6856,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-typeof-symbol/7.16.7_@babel+core@7.16.12:
@ -6849,7 +6866,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-typeof-symbol/7.16.7_@babel+core@7.17.8:
@ -6928,7 +6945,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: true
/@babel/plugin-transform-unicode-escapes/7.16.7_@babel+core@7.16.12:
@ -6938,7 +6955,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.16.12
'@babel/helper-plugin-utils': 7.19.0
'@babel/helper-plugin-utils': 7.18.9
dev: false
/@babel/plugin-transform-unicode-escapes/7.16.7_@babel+core@7.17.8:
@ -8213,6 +8230,7 @@ packages:
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
dev: true
/@humanwhocodes/config-array/0.5.0:
resolution: {integrity: sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==}
@ -14488,6 +14506,7 @@ packages:
typescript: 4.8.4
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/scope-manager/4.33.0:
resolution: {integrity: sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ==}
@ -23148,7 +23167,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
'@typescript-eslint/parser': 5.43.0_zksrc6ykdxhogxjbhb5axiabwi
'@typescript-eslint/parser': 5.43.0_z4bbprzjrhnsfa24uvmcbu7f5q
debug: 3.2.7
eslint-import-resolver-node: 0.3.6
find-up: 2.1.0
@ -23944,6 +23963,7 @@ packages:
dependencies:
eslint: 8.28.0
eslint-visitor-keys: 2.1.0
dev: true
/eslint-visitor-keys/1.3.0:
resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==}
@ -24329,6 +24349,7 @@ packages:
text-table: 0.2.0
transitivePeerDependencies:
- supports-color
dev: true
/espree/5.0.1:
resolution: {integrity: sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==}
@ -27826,6 +27847,7 @@ packages:
/is-path-inside/3.0.3:
resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
engines: {node: '>=8'}
dev: true
/is-plain-obj/1.1.0:
resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==}
@ -30371,6 +30393,7 @@ packages:
/js-sdsl/4.2.0:
resolution: {integrity: sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==}
dev: true
/js-sha3/0.8.0:
resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==}
@ -39933,6 +39956,10 @@ packages:
dependencies:
safe-buffer: 5.2.1
/tunnel/0.0.6:
resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
/turbo-android-arm64/1.4.5:
resolution: {integrity: sha512-cKPJVyS1A2BBVbcH8XVeBArtEjHxioEm9zQa3Hv68usQOOFW+KOjH+0fGvjqMrWztLVFhE+npeVsnyu/6AmRew==}
cpu: [arm64]

View File

@ -8,7 +8,7 @@
Currently there are just 2 commands:
1. `lint`. Analyzer is used as a linter for PRs to check if hook/template/db changes were introduced. It produces output either directly on CI or via GH actions `set-output`.
1. `lint`. Analyzer is used as a linter for PRs to check if hook/template/db changes were introduced. It produces output either directly on CI or via setting output variables in GH actions.
Here is an example `analyzer` command, run from this directory:

View File

@ -14,7 +14,8 @@
"commander": "^9.4.0",
"dotenv": "^10.0.0",
"simple-git": "^3.10.0",
"uuid": "^8.3.2"
"uuid": "^8.3.2",
"@actions/core": "^1.10.0"
},
"devDependencies": {
"@types/node": "^16.9.4",

View File

@ -38,7 +38,7 @@ const program = new Command()
)
.option(
'-o, --outputStyle <outputStyle>',
'Output style for the results. Options: github, cli. Github output will use ::set-output to set the results as an output variable.',
'Output style for the results. Options: github, cli. Github output will set the results as an output variable for Github actions.',
'cli'
)
.option(

View File

@ -1,3 +1,8 @@
/**
* External dependencies
*/
import { setOutput } from '@actions/core';
/**
* Internal dependencies
*/
@ -29,7 +34,7 @@ export const printTemplateResults = (
);
}
log( `::set-output name=templates::${ opt }` );
setOutput( 'templates', opt );
} else {
log( `\n## ${ title }:` );
for ( const { filePath, code, message } of data ) {
@ -63,7 +68,7 @@ export const printHookResults = (
version,
description,
hookType,
changeType
changeType,
} of data ) {
opt += `\\n* **File:** ${ filePath }`;
@ -78,7 +83,7 @@ export const printHookResults = (
);
}
log( `::set-output name=wphooks::${ opt }` );
setOutput( 'wphooks', opt );
} else {
log( `\n## ${ sectionTitle }:` );
log( '---------------------------------------------------' );
@ -130,7 +135,7 @@ export const printSchemaChange = (
}
} );
log( `::set-output name=schema::${ githubCommentContent }` );
setOutput( 'schema', githubCommentContent );
} else {
log( '\n## SCHEMA CHANGES' );
log( '---------------------------------------------------' );
@ -163,7 +168,7 @@ export const printDatabaseUpdates = (
): void => {
if ( output === 'github' ) {
const githubCommentContent = `\\n\\n### New database updates:\\n * **${ updateFunctionName }** introduced in ${ updateFunctionVersion }`;
log( `::set-output name=database::${ githubCommentContent }` );
setOutput( 'database', githubCommentContent );
} else {
log( '\n## DATABASE UPDATES' );
log( '---------------------------------------------------' );