From 9af0e9c44a1b11c5218693d6e6bd019cbf54aab3 Mon Sep 17 00:00:00 2001 From: "J. Fronny" <33260128+JFronny@users.noreply.github.com> Date: Fri, 20 Dec 2019 13:37:20 +0100 Subject: [PATCH] Attempt to move Meta files to GitHub Gists --- .github/workflows/main.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3cfb630..0db1bbe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,9 +43,11 @@ jobs: - name: Fix files id: final run: | + git clone https://gist.github.com/JFronny/f1ccbba3d8a2f5862592bb29fdb612c4 + cd f1ccbba3d8a2f5862592bb29fdb612c4 $xml = New-Object 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.File = "${{ steps.upload_release_asset.outputs.browser_download_url }}" $xml.save("Meta.xml") @@ -63,9 +65,6 @@ jobs: [System.IO.File]::WriteAllLines($FilePath, (Get-Content $FilePath), $utf8NoBomEncoding) Write-Host "Remove UTF-8 BOM successfully" } - - uses: matheusalbino/git-commit@v1.0.1 - with: - user-name: Equal - user-email: equal@example.com - message: This a commit from Github Actions - github-token: ${{ secrets.GITHUB_TOKEN }} + git add . + git commit -m "Automated update to Meta.xml" + git push