Skip to content

Commit

Permalink
👷 Rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
17TheWord committed Feb 14, 2025
1 parent e43c645 commit 38fc866
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Debug Matrix Output
run: echo "Matrix is ${{ needs.generate-matrix.outputs.matrix }}"

- name: Chose JDK 21
uses: actions/setup-java@v4
with:
Expand Down
32 changes: 1 addition & 31 deletions matrix.ps1
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
#param (
# [string[]]$paths
#)
#
#$allFolderObjects = @()
#
#foreach ($path in $paths) {
# $folders = Get-ChildItem -Path $path -Directory
# $filteredFolders = $folders | Where-Object { $_.Name -ne "origin" }
#
# $folderObjects = $filteredFolders | ForEach-Object {
# [PSCustomObject]@{
# "mc-version" = $_.Name.Replace("$path-", "")
# "mc-loader" = $path
# }
# }
#
# $allFolderObjects += $folderObjects
#}
#
#$json = [PSCustomObject]@{
# "config" = $allFolderObjects
#} | ConvertTo-Json -Compress
#
#Write-Output "::set-output name=matrix::$json"
param (
[string[]]$paths
)
Expand All @@ -47,9 +22,4 @@ $json = [PSCustomObject]@{
"config" = $allFolderObjects
} | ConvertTo-Json -Compress

# 使用环境文件输出替换 `set-output`
$env:GITHUB_ENV = "$env:GITHUB_WORKSPACE/.github/environment"
$json | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_ENV
# 添加调试输出,查看 JSON 内容
Write-Host "Generated JSON: $json"

Write-Output "::set-output name=matrix::$json"

0 comments on commit 38fc866

Please sign in to comment.