Gitako/.github/workflows/version.yml
2022-07-17 22:02:46 +08:00

19 lines
428 B
YAML

name: Get VERSION for referencing
on:
workflow_call:
outputs:
VERSION:
description: "The VERSION string"
value: ${{ jobs.build.outputs.VERSION }}
jobs:
get-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)