Gitako/.github/workflows/version.yml
2022-07-18 00:36:49 +08:00

19 lines
426 B
YAML

name: Get VERSION for referencing
on:
workflow_call:
outputs:
VERSION:
description: "The VERSION string"
value: ${{ jobs.version.outputs.VERSION }}
jobs:
version:
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.get_ref.outputs.VERSION }}
steps:
- name: Get the ref
id: get_ref
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)