mirror of
https://github.com/Slava-Shchipunov/awg-openwrt.git
synced 2026-03-14 01:13:09 +00:00
36 lines
736 B
YAML
36 lines
736 B
YAML
name: OpenWRT Data Fetch
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
fetch-data:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.16.0'
|
|
|
|
- name: Get OpenWRT version from tag
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Run script with version
|
|
run: node index.js ${{ env.VERSION }}
|
|
|
|
- name: Upload results.json
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: results
|
|
path: results.json
|