mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: added node version matrix and removed unnecessary fetch
This commit is contained in:
1 parent
568ffa06e3
commit
fbcd9e82e3
1 file changed
+4
-12
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user