Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
941f4d42
Commit
941f4d42
authored
Jun 22, 2022
by
Josh Spicer
Committed by
GitHub
Jun 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no-ci node16 for action
parent
939170b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
action.yml
.github/devcontainers-action/action.yml
+1
-1
index.js
.github/devcontainers-action/dist/index.js
+2
-2
index.js.map
.github/devcontainers-action/dist/index.js.map
+1
-1
utils.js
.github/devcontainers-action/lib/utils.js
+2
-2
No files found.
.github/devcontainers-action/action.yml
View file @
941f4d42
...
...
@@ -32,5 +32,5 @@ inputs:
description
:
"
Relative
path
to
the
folder
containing
dev
container
'template(s)'"
runs
:
using
:
'
node1
2
'
using
:
'
node1
6
'
main
:
'
dist/index.js'
.github/devcontainers-action/dist/index.js
View file @
941f4d42
...
...
@@ -371,13 +371,13 @@ function getFeaturesAndPackage(basePath) {
const
featureFolder
=
path_1
.
default
.
join
(
basePath
,
file
);
const
archiveName
=
`
${
file
}
.tgz`
;
tarDirectory
(
`
${
basePath
}
/
${
file
}
`
,
archiveName
);
const
featureJsonPath
=
path_1
.
default
.
join
(
featureFolder
,
"devcontainer-feature.json"
);
const
featureJsonPath
=
path_1
.
default
.
join
(
featureFolder
,
'devcontainer-feature.json'
);
if
(
!
fs
.
existsSync
(
featureJsonPath
))
{
core
.
error
(
`Feature
${
file
}
is missing a devcontainer-feature.json`
);
core
.
setFailed
(
'All features must have a devcontainer-feature.json'
);
return
;
}
const
featureMetadata
=
JSON
.
parse
(
fs
.
readFileSync
(
featureJsonPath
,
"utf8"
));
const
featureMetadata
=
JSON
.
parse
(
fs
.
readFileSync
(
featureJsonPath
,
'utf8'
));
metadatas
.
push
(
featureMetadata
);
}
});
...
...
.github/devcontainers-action/dist/index.js.map
View file @
941f4d42
This source diff could not be displayed because it is too large. You can
view the blob
instead.
.github/devcontainers-action/lib/utils.js
View file @
941f4d42
...
...
@@ -104,13 +104,13 @@ function getFeaturesAndPackage(basePath) {
const
featureFolder
=
path_1
.
default
.
join
(
basePath
,
file
);
const
archiveName
=
`
${
file
}
.tgz`
;
tarDirectory
(
`
${
basePath
}
/
${
file
}
`
,
archiveName
);
const
featureJsonPath
=
path_1
.
default
.
join
(
featureFolder
,
"devcontainer-feature.json"
);
const
featureJsonPath
=
path_1
.
default
.
join
(
featureFolder
,
'devcontainer-feature.json'
);
if
(
!
fs
.
existsSync
(
featureJsonPath
))
{
core
.
error
(
`Feature
${
file
}
is missing a devcontainer-feature.json`
);
core
.
setFailed
(
'All features must have a devcontainer-feature.json'
);
return
;
}
const
featureMetadata
=
JSON
.
parse
(
fs
.
readFileSync
(
featureJsonPath
,
"utf8"
));
const
featureMetadata
=
JSON
.
parse
(
fs
.
readFileSync
(
featureJsonPath
,
'utf8'
));
metadatas
.
push
(
featureMetadata
);
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment