fix: added node version matrix and removed unnecessary fetch

This commit is contained in:
TresAbhi committed 2023-06-13 00:02:03 +00:00
1 parent 568ffa06e3
commit fbcd9e82e3
1 file changed
+4 -12
+4 -12
View File
@@ -2,7 +2,7 @@ name: Host
on:
schedule:
- cron: '50 */5 * * *'
- cron: '0 */5 * * *'
push:
branches:
- 'main'
@@ -15,6 +15,9 @@ concurrency:
jobs:
host:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Use node
@@ -22,17 +25,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Get latest release
uses: actions/github-script@v4
with:
script: |
const response = await github.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
console.log(response.data.assets[0].browser_download_url);
core.setOutput("download_url", response.data.assets[0].browser_download_url);
- name: Download release assets
run: |
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/tresabhi/blitzkrieg/releases/latest \