update: fix

This commit is contained in:
Darwin Cereska
2025-06-19 17:05:45 -04:00
parent f3e11be100
commit a2a26e8ddf
2 changed files with 8 additions and 6 deletions

View File

@@ -26,17 +26,18 @@ jobs:
id: release id: release
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
result-encoding: string
script: | script: |
const { data: release } = await github.rest.repos.getLatestRelease({ const release = await github.rest.repos.getLatestRelease({
owner: 'darwincereska', owner: 'darwincereska',
repo: 'ttymer' repo: 'ttymer'
}) })
return release return release.data.tarball_url
- name: Calculate SHA256 of tarball - name: Calculate SHA256 of tarball
id: sha256 id: sha256
run: | run: |
curl -L -o release.tar.gz ${{ steps.release.outputs.data.tarball_url }} curl -L -o release.tar.gz ${{ steps.release.outputs.results }}
sha256sum release.tar.gz | awk '{ print $1 }' > sha256.txt sha256sum release.tar.gz | awk '{ print $1 }' > sha256.txt
echo "::set-output name=hash::$(cat sha256.txt)" echo "::set-output name=hash::$(cat sha256.txt)"

View File

@@ -26,17 +26,18 @@ jobs:
id: release id: release
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
result-encoding: string
script: | script: |
const { data: release } = await github.rest.repos.getLatestRelease({ const release = await github.rest.repos.getLatestRelease({
owner: 'darwincereska', owner: 'darwincereska',
repo: 'xswitcher' repo: 'xswitcher'
}) })
return release return release.data.tarball_url
- name: Calculate SHA256 of tarball - name: Calculate SHA256 of tarball
id: sha256 id: sha256
run: | run: |
curl -L -o release.tar.gz ${{ steps.release.outputs.data.tarball_url }} curl -L -o release.tar.gz ${{ steps.release.outputs.result }}
sha256sum release.tar.gz | awk '{ print $1 }' > sha256.txt sha256sum release.tar.gz | awk '{ print $1 }' > sha256.txt
echo "::set-output name=hash::$(cat sha256.txt)" echo "::set-output name=hash::$(cat sha256.txt)"