This commit is contained in:
Darwin Cereska
2025-06-19 17:19:11 -04:00
parent 96b816d96d
commit 1a64242519
2 changed files with 4 additions and 10 deletions

View File

@@ -17,16 +17,13 @@ jobs:
id: fetch id: fetch
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
result-encoding: json
script: | script: |
const release = await github.rest.repos.getLatestRelease({ const release = await github.rest.repos.getLatestRelease({
owner: 'darwincereska', owner: 'darwincereska',
repo: 'ttymer' repo: 'ttymer'
}); });
return { core.setOutput("version", release.data.tag_name);
version: release.data.tag_name, core.setOutput("url", release.data.tarball_url);
url: release.data.tarball_url
};
- name: Download tarball and compute SHA256 - name: Download tarball and compute SHA256
id: compute id: compute

View File

@@ -17,16 +17,13 @@ jobs:
id: fetch id: fetch
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
result-encoding: json
script: | script: |
const release = await github.rest.repos.getLatestRelease({ const release = await github.rest.repos.getLatestRelease({
owner: 'darwincereska', owner: 'darwincereska',
repo: 'xswitcher' repo: 'xswitcher'
}); });
return { core.setOutput("version", release.data.tag_name);
version: release.data.tag_name, core.setOutput("url", release.data.tarball_url);
url: release.data.tarball_url
};
- name: Download tarball and compute SHA256 - name: Download tarball and compute SHA256
id: compute id: compute