Skip to content

Commit

Permalink
Test updation of versions.json
Browse files Browse the repository at this point in the history
  • Loading branch information
aurindam committed Sep 30, 2024
1 parent 47f16c9 commit 3a65038
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

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 }}"\
},\
{\' versions.json
1 change: 1 addition & 0 deletions releases/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"url": "https://snapshots.slint.dev/master/docs"
},
{
"preferred": true,
"version": "1.8.0",
"url": "https://releases.slint.dev/1.8.0/docs/slint"
},
Expand Down

0 comments on commit 3a65038

Please sign in to comment.