aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/package.json
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-14 03:42:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-14 03:42:14 +0300
commit203b15ee12f9b6f18de4f6575873d698be313557 (patch)
treecd8b9209042139c325aa142864e45ad20f52597c /package.json
parentadd .gitattributes (diff)
downloadcleanup-path-203b15ee12f9b6f18de4f6575873d698be313557.tar.gz
cleanup-path-203b15ee12f9b6f18de4f6575873d698be313557.zip
make it into a JavaScript action
This is a huge step back IMO, but I needed to be able to restore the original PATH back as a "post" step. Currently, composite actions don't support post-actions, but JavaScript ones do. I needed this due to a bug: actions/cache wouldn't find Git's tar on windows-2016 (the one in System32 would get used on windows-2019) if the PATH was cleaned up.
Diffstat (limited to '')
-rw-r--r--package.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..6aefc52
--- /dev/null
+++ b/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "cleanup-path",
+ "version": "2.0.0",
+ "description": "Clean up PATH on Windows workers",
+ "main": "clean.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/egor-tensin/cleanup-path.git"
+ },
+ "author": "Egor Tensin <Egor.Tensin@gmail.com>",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/egor-tensin/cleanup-path/issues"
+ },
+ "homepage": "https://github.com/egor-tensin/cleanup-path",
+ "dependencies": {
+ "@actions/core": "^1.2.6"
+ }
+}