This commit is contained in:
Darwin Cereska
2025-06-19 17:32:31 -04:00
parent 5fa76bb856
commit 7e48e91d52
3 changed files with 13 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ jobs:
with:
persist-credentials: true
- name: Fetch latest release from GitHub
- name: Fetch latest release tag from GitHub
id: fetch
uses: actions/github-script@v6
with:
@@ -25,12 +25,14 @@ jobs:
repo: 'ttymer'
});
core.setOutput("version", release.data.tag_name);
core.setOutput("url", release.data.tarball_url);
- name: Download tarball and compute SHA256
- name: Download archive from refs/tags and compute SHA256
id: compute
run: |
curl -L -o ttymer.tar.gz "${{ steps.fetch.outputs.url }}"
VERSION=${{ steps.fetch.outputs.version }}
ARCHIVE_URL="https://github.com/darwincereska/ttymer/archive/refs/tags/${VERSION}.tar.gz"
echo "Downloading archive: $ARCHIVE_URL"
curl -L -o ttymer.tar.gz "$ARCHIVE_URL"
SHA256=$(sha256sum ttymer.tar.gz | awk '{ print $1 }')
echo "sha256=$SHA256" >> $GITHUB_OUTPUT