-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 948 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Test updation of versions.json
on:
workflow_dispatch:
inputs:
version:
type: string
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
releases/versions.json
- name: Update version in versions.json
run: |
sed -i '/"name": "development snapshot"/,/"url": "https:\/\/snapshots\.slint\.dev\/master\/docs"\
},\
{\
"preferred": true,/c\
"name": "development snapshot",\
"url": "https://snapshots.slint.dev/master/docs"\
},\
{\
"preferred": true,\
"version": "${{ inputs.version }}",\
"url": "https://releases.slint.dev/?v=${{ inputs.version }}"\
},\
{\' releases/versions.json
cat releases/versions.json