mirror of
https://github.com/egor-tensin/cleanup-path.git
synced 2025-05-01 00:59:32 +03:00

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.
20 lines
371 B
YAML
20 lines
371 B
YAML
name: Clean up PATH
|
|
description: Clean up PATH environment variable on Windows workers
|
|
|
|
inputs:
|
|
dirs:
|
|
description: Additional paths, separated by a semicolon (;)
|
|
required: false
|
|
default:
|
|
description: Add the default paths
|
|
required: false
|
|
default: 1
|
|
|
|
runs:
|
|
using: node12
|
|
main: clean.js
|
|
post: restore.js
|
|
|
|
branding:
|
|
icon: star
|
|
color: green
|