Attempt to move Meta files to GitHub Gists
This commit is contained in:
parent
3ef9747c76
commit
9af0e9c44a
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
@ -43,9 +43,11 @@ jobs:
|
||||||
- name: Fix files
|
- name: Fix files
|
||||||
id: final
|
id: final
|
||||||
run: |
|
run: |
|
||||||
|
git clone https://gist.github.com/JFronny/f1ccbba3d8a2f5862592bb29fdb612c4
|
||||||
|
cd f1ccbba3d8a2f5862592bb29fdb612c4
|
||||||
$xml = New-Object XML
|
$xml = New-Object XML
|
||||||
$xml.load("Meta.xml")
|
$xml.load("Meta.xml")
|
||||||
$xml.meta.Hash = $(Get-FileHash .\Release.zip).Hash
|
$xml.meta.Hash = $(Get-FileHash ..\Release.zip).Hash
|
||||||
$xml.meta.Version = ${{ steps.base_init.outputs.vers }}
|
$xml.meta.Version = ${{ steps.base_init.outputs.vers }}
|
||||||
$xml.meta.File = "${{ steps.upload_release_asset.outputs.browser_download_url }}"
|
$xml.meta.File = "${{ steps.upload_release_asset.outputs.browser_download_url }}"
|
||||||
$xml.save("Meta.xml")
|
$xml.save("Meta.xml")
|
||||||
|
@ -63,9 +65,6 @@ jobs:
|
||||||
[System.IO.File]::WriteAllLines($FilePath, (Get-Content $FilePath), $utf8NoBomEncoding)
|
[System.IO.File]::WriteAllLines($FilePath, (Get-Content $FilePath), $utf8NoBomEncoding)
|
||||||
Write-Host "Remove UTF-8 BOM successfully"
|
Write-Host "Remove UTF-8 BOM successfully"
|
||||||
}
|
}
|
||||||
- uses: matheusalbino/git-commit@v1.0.1
|
git add .
|
||||||
with:
|
git commit -m "Automated update to Meta.xml"
|
||||||
user-name: Equal
|
git push
|
||||||
user-email: equal@example.com
|
|
||||||
message: This a commit from Github Actions
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
Reference in New Issue
Block a user