mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-19 16:40:35 +03:00
ee372033ab
* Deduplicate steps in GHA workflows * Minor change
23 lines
568 B
YAML
23 lines
568 B
YAML
# Get the current version
|
|
name: Get version
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
version:
|
|
description: The version of the project
|
|
value: ${{ jobs.get-version.outputs.version }}
|
|
|
|
jobs:
|
|
get-version:
|
|
name: Get version
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
version: ${{ steps.get-version.outputs.version }}
|
|
steps:
|
|
- name: Get version from package.json
|
|
id: get-version
|
|
run: |
|
|
version="$(grep version -m 1 -i package.json | sed 's/[ \",:version]//g')"
|
|
echo "version=$version" >> $GITHUB_OUTPUT
|