Clean out some echos

This commit is contained in:
J. Fronny 2020-03-08 10:13:43 +01:00 committed by GitHub
parent 0135092ba2
commit e79a5c978c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,24 +43,20 @@ jobs:
- name: Fix files
id: final
run: |
echo "Cloning"
cd ..
git clone https://JFronny:${{ secrets.GIST }}@gist.github.com/JFronny/f1ccbba3d8a2f5862592bb29fdb612c4 MetaXML
cd MetaXML
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
echo "Building XML"
cat Meta.xml
Write-Host "Building XML"
$xml = New-Object XML
$xml.load($(gi .\Meta.xml).Fullname)
echo $xml.meta
$xml.meta.Hash = $(Get-FileHash $Env:GITHUB_WORKSPACE\Release.zip).Hash
$xml.meta.Version = "${{ steps.base_init.outputs.vers }}"
$xml.meta.File = "${{ steps.upload_release_asset.outputs.browser_download_url }}"
echo $xml.meta
$xml.save($(gi .\Meta.xml).Fullname)
cat Meta.xml
echo "Removing UTF-8 BOM"
Write-Host "Removing UTF-8 BOM"
$FilePath=$(pwd).Path + "\Meta.xml"
[System.IO.FileInfo] $file = Get-Item -Path $FilePath
$sequenceBOM = New-Object System.Byte[] 3
@ -73,7 +69,7 @@ jobs:
[System.IO.File]::WriteAllLines($FilePath, (Get-Content $FilePath), $utf8NoBomEncoding)
Write-Host "Remove UTF-8 BOM successfully"
}
echo "Pushing"
Write-Host "Pushing"
git commit -m "Add changes" -a
git push
echo "All done"
Write-Host "All done"