From b6e8635d46aba823c47c62742b8137269153c5ad Mon Sep 17 00:00:00 2001 From: Georgy Kirichenko Date: Tue, 17 Sep 2024 16:48:48 +0300 Subject: [PATCH] Export version variables --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90407dd6..6abc23de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,15 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + - name: version + run: | + export YANET_VERSION=${{github.ref_name}} + export YANET_VERSION=${YANET_VERSION} + export YANET_VERSION_MAJOR=${YANET_VERSION%.*} + export YANET_VERSION_MINOR=${YANET_VERSION#*.} + export YANET_VERSION_REVISION=${{github.run_number}} + export YANET_VERSION_HASH=${{github.sha}} + export YANET_VERSION_CUSTOM=stable - name: Docker meta id: meta uses: docker/metadata-action@v5