Skip to content

Commit 1ed2969

Browse files
committed
trying to bypass vars
1 parent 9f37758 commit 1ed2969

File tree

1 file changed

+1
-54
lines changed

1 file changed

+1
-54
lines changed

action.yml

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -6,60 +6,7 @@ runs:
66
steps:
77
- name: Install Mikero Tools
88
run: |
9-
$beforeEventCommit = "${{ github.event.before }}"
10-
$afterEventCommit = "${{ github.event.after }}"
11-
$build_tool = "${{ inputs.build_tool }}"
12-
$private_key = "${{ inputs.private_key }}"
13-
$projectName = "${{ github.event.repository.name }}"
14-
$addonPrefix = "${{ inputs.addon_prefix }}"
15-
16-
Write-Output "Before Event Commit -> $beforeEventCommit"
17-
Write-Output "After Event Commit -> $afterEventCommit"
18-
19-
Write-Output "Build Tool -> $build_tool"
20-
Write-Output "Private Key -> $private_key"
21-
22-
Write-Output "Project Name -> $projectName"
23-
Write-Output "Addon Prefix -> $addonPrefix"
24-
25-
$whereIam = Get-Location
26-
Write-Output "Where I am -> $whereIam"
27-
28-
$changedStuff = git diff --stat $beforeCommit $afterCommit
29-
Write-Output "Changed stuff -> $changedStuff"
30-
$changedFiles = git diff --name-only $beforeCommit $afterCommit
31-
if ($changedFiles.Length -eq 0) {
32-
Write-Output "ERROR: No changed files were found. Aborting."
33-
}
34-
Write-Output "Changed Files: $changedFiles"
35-
$changedDirs = $changedFiles | ForEach-Object { $_.Split('/')[0] } | Select-Object -Unique
36-
Write-Output "Changed Folders: $changedDirs"
37-
38-
$symlinkPath = "P:\$projectName"
39-
40-
if (Test-Path "P:\$projectName" -PathType Leaf) {
41-
Remove-Item $symlinkPath -Force
42-
Write-Output "Removing previous leaf symlink: $symlinkPath"
43-
}
44-
45-
if (Test-Path $symlinkPath -PathType Container) {
46-
Remove-Item $symlinkPath -Force
47-
Write-Output "Removing previous container symlink: $symlinkPath"
48-
}
49-
50-
Write-Output "Creating symlink: $symlinkPath"
51-
$symlinkLink = New-Item -ItemType SymbolicLink -Path "$symlinkPath\" -Target $whereIam
52-
53-
$changedDirs | ForEach-Object {
54-
$folder = $_
55-
$packedDir = "$symlinkPath\${folder}"
56-
Write-Output "Packing Folder: $packedDir"
57-
};
58-
59-
if (Test-Path $symlinkPath -PathType Container) {
60-
Remove-Item $symlinkPath -Force
61-
Write-Output "Removing previous container symlink: $symlinkPath"
62-
}
9+
Write-Output "Packable Dirs => $packableDirs"
6310
6411
shell: pwsh
6512

0 commit comments

Comments
 (0)