Add test workflow
This commit is contained in:
parent
d931bc6e05
commit
78a6e68421
21
.github/workflows/version.yaml
vendored
Normal file
21
.github/workflows/version.yaml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: 'get current ui version'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: get latest version from package.json
|
||||
id: latestversion
|
||||
run: |
|
||||
echo "version=$(cat ./package.json | jq '.version' | sed 's/\"//g')" >> "$GITHUB_OUTPUT"
|
||||
- name: confirm version
|
||||
run: |
|
||||
echo ${{ steps.latestversion.outputs.version }}
|
||||
Loading…
x
Reference in New Issue
Block a user