Merge pull request #302 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.5.0
test / test (push) Failing after 10s Details
validate / prepare (push) Successful in 7s Details
validate / validate (push) Failing after 8s Details
ci / multi-images (push) Successful in 8s Details
ci / tag-schedule () (push) Successful in 8s Details
ci / tag-schedule (cron-{{date 'YYYYMMDD'}}) (push) Successful in 7s Details
ci / tag-schedule (schedule) (push) Successful in 8s Details
ci / tag-schedule ({{date 'YYYYMMDD-HHmmss'}}) (push) Successful in 8s Details
ci / tag-match (\d.\d, 0) (push) Successful in 8s Details
ci / tag-match (\d.\d.\d, 0) (push) Successful in 7s Details
ci / tag-match (v(.*), 1) (push) Successful in 8s Details
ci / tag-semver (auto) (push) Successful in 8s Details
ci / tag-semver (false) (push) Successful in 8s Details
ci / tag-semver (true) (push) Successful in 8s Details
ci / flavor (push) Successful in 8s Details
ci / images (push) Successful in 7s Details
ci / labels (push) Successful in 8s Details
ci / global-exps (push) Successful in 7s Details
ci / json (push) Successful in 9s Details
ci / docker-push (push) Failing after 16s Details
ci / bake (push) Failing after 11s Details
ci / sep-tags ( ) (push) Successful in 9s Details
ci / sep-tags (,) (push) Successful in 9s Details
ci / output-env (push) Failing after 11s Details

Bump @docker/actions-toolkit from 0.3.0 to 0.5.0
This commit is contained in:
CrazyMax 2023-06-13 12:27:30 +02:00 committed by GitHub
commit 818d4b7b91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 62 additions and 25 deletions

View File

@ -63,7 +63,24 @@ describe('getInputs', () => {
sepTags: ',', sepTags: ',',
tags: [], tags: [],
} as Inputs } as Inputs
] ],
[
2,
new Map<string, string>([
['images', 'moby/buildkit\n#comment\nghcr.io/moby/mbuildkit'],
]),
{
context: ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
images: ['moby/buildkit', 'ghcr.io/moby/mbuildkit'],
labels: [],
sepLabels: '\n',
sepTags: '\n',
tags: [],
} as Inputs
],
])( ])(
'[%d] given %p as inputs, returns %p', '[%d] given %p as inputs, returns %p',
async (num: number, inputs: Map<string, string>, expected: Inputs) => { async (num: number, inputs: Map<string, string>, expected: Inputs) => {

28
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,7 @@
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"@actions/github": "^5.1.1", "@actions/github": "^5.1.1",
"@docker/actions-toolkit": "^0.3.0", "@docker/actions-toolkit": "^0.5.0",
"@renovate/pep440": "^1.0.0", "@renovate/pep440": "^1.0.0",
"csv-parse": "^5.4.0", "csv-parse": "^5.4.0",
"handlebars": "^4.7.7", "handlebars": "^4.7.7",

View File

@ -19,10 +19,10 @@ export interface Inputs {
export function getInputs(): Inputs { export function getInputs(): Inputs {
return { return {
context: (core.getInput('context') || ContextSource.workflow) as ContextSource, context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
images: Util.getInputList('images', {ignoreComma: true}), images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
tags: Util.getInputList('tags', {ignoreComma: true}), tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
flavor: Util.getInputList('flavor', {ignoreComma: true}), flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
labels: Util.getInputList('labels', {ignoreComma: true}), labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`, sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`, sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
bakeTarget: core.getInput('bake-target') || `docker-metadata-action`, bakeTarget: core.getInput('bake-target') || `docker-metadata-action`,

View File

@ -606,10 +606,10 @@
dependencies: dependencies:
"@jridgewell/trace-mapping" "0.3.9" "@jridgewell/trace-mapping" "0.3.9"
"@docker/actions-toolkit@^0.3.0": "@docker/actions-toolkit@^0.5.0":
version "0.3.0" version "0.5.0"
resolved "https://registry.yarnpkg.com/@docker/actions-toolkit/-/actions-toolkit-0.3.0.tgz#822c810af3a304ef793061a11263546a6c0649cf" resolved "https://registry.yarnpkg.com/@docker/actions-toolkit/-/actions-toolkit-0.5.0.tgz#4f2c215a1e67ce27edb10acf658b5289f8da7d7e"
integrity sha512-TayOSJZ6Oe/koUPC01tiesgB26Nsqre7z/fwscaVp2GMk8V+b8dcjLWkUhDvbcfdMeUWOgxvAmdF0YcT5rdvDg== integrity sha512-VgU9KDmCgSVqpLwNVkf4JUP8Bg38dymuDJhMU0A5DRXtII/K+85peEY/in6U7ThyO1wSSef19ImpiIKYLFBqvA==
dependencies: dependencies:
"@actions/core" "^1.10.0" "@actions/core" "^1.10.0"
"@actions/exec" "^1.1.1" "@actions/exec" "^1.1.1"
@ -617,6 +617,7 @@
"@actions/http-client" "^2.0.1" "@actions/http-client" "^2.0.1"
"@actions/io" "^1.1.2" "@actions/io" "^1.1.2"
"@actions/tool-cache" "^2.0.1" "@actions/tool-cache" "^2.0.1"
"@octokit/plugin-rest-endpoint-methods" "^7.2.1"
async-retry "^1.3.3" async-retry "^1.3.3"
csv-parse "^5.4.0" csv-parse "^5.4.0"
handlebars "^4.7.7" handlebars "^4.7.7"
@ -1005,6 +1006,11 @@
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-11.2.0.tgz#b38d7fc3736d52a1e96b230c1ccd4a58a2f400a6" resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-11.2.0.tgz#b38d7fc3736d52a1e96b230c1ccd4a58a2f400a6"
integrity sha512-PBsVO+15KSlGmiI8QAzaqvsNlZlrDlyAJYcrXBCvVUxCp7VnXjkwPoFHgjEJXx3WF9BAwkA6nfCUA7i9sODzKA== integrity sha512-PBsVO+15KSlGmiI8QAzaqvsNlZlrDlyAJYcrXBCvVUxCp7VnXjkwPoFHgjEJXx3WF9BAwkA6nfCUA7i9sODzKA==
"@octokit/openapi-types@^18.0.0":
version "18.0.0"
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-18.0.0.tgz#f43d765b3c7533fd6fb88f3f25df079c24fccf69"
integrity sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==
"@octokit/openapi-types@^7.2.0": "@octokit/openapi-types@^7.2.0":
version "7.2.1" version "7.2.1"
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-7.2.1.tgz#3ba1abe8906863edd403e185bc12e2bf79b3e240" resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-7.2.1.tgz#3ba1abe8906863edd403e185bc12e2bf79b3e240"
@ -1025,6 +1031,13 @@
"@octokit/types" "^6.34.0" "@octokit/types" "^6.34.0"
deprecation "^2.3.1" deprecation "^2.3.1"
"@octokit/plugin-rest-endpoint-methods@^7.2.1":
version "7.2.1"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.2.1.tgz#0e086930c8b4470b0eabaa7d68b67fd1b245bb3a"
integrity sha512-UmlNrrcF+AXxcxhZslTt1a/8aDxUKH0trrt/mJCxEPrWbW1ZEc+6xxcd5/n0iw3b+Xo8UBJQUKDr71+vNCBpRQ==
dependencies:
"@octokit/types" "^9.3.1"
"@octokit/request-error@^2.0.0": "@octokit/request-error@^2.0.0":
version "2.0.2" version "2.0.2"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0"
@ -1099,6 +1112,13 @@
dependencies: dependencies:
"@octokit/openapi-types" "^11.2.0" "@octokit/openapi-types" "^11.2.0"
"@octokit/types@^9.3.1":
version "9.3.1"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-9.3.1.tgz#9eb20390f8cfcc975635d813f9a2094efd4aa2dd"
integrity sha512-zfJzyXLHC42sWcn2kS+oZ/DRvFZBYCCbfInZtwp1Uopl1qh6pRg4NSP/wFX1xCOpXvEkctiG1sxlSlkZmzvxdw==
dependencies:
"@octokit/openapi-types" "^18.0.0"
"@renovate/pep440@^1.0.0": "@renovate/pep440@^1.0.0":
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/@renovate/pep440/-/pep440-1.0.0.tgz#9e05cac649b6a3d027cba7f2939b085de78f39ea" resolved "https://registry.yarnpkg.com/@renovate/pep440/-/pep440-1.0.0.tgz#9e05cac649b6a3d027cba7f2939b085de78f39ea"