Skip to content

Test updation of versions.json #10

Test updation of versions.json

Test updation of versions.json #10

Workflow file for this run

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: Print contents before update
run: cat releases/versions.json
- name: Update version in versions.json
run: |
sed -i '/"name": "development snapshot"/,/"preferred": true,/c\
"name": "development snapshot",\
"url": "https://snapshots.slint.dev/master/docs"\
},\
{\
"preferred": true,\
"version": "${{ inputs.version }}",\
"url": "https://releases.slint.dev/${{ inputs.version }}/docs/slint"\
},\
{' releases/versions.json
- name: Print contents before update
run: cat releases/versions.json