From 1b2be41e1e9d154f511a95da9536d7dc93be0489 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 22 Apr 2021 13:42:01 +0200 Subject: [PATCH] added build names to env --- .github/workflows/buildReporting.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/buildReporting.yml b/.github/workflows/buildReporting.yml index c77e9143..b70d005d 100644 --- a/.github/workflows/buildReporting.yml +++ b/.github/workflows/buildReporting.yml @@ -13,6 +13,23 @@ jobs: maven-build: runs-on: ubuntu-latest steps: + - + name: Branch name + id: branch_name + run: | + echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/} + echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/} + echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + - + name: Put names to env + run: | + echo $SOURCE_NAME + echo $SOURCE_BRANCH + echo $SOURCE_TAG + env: + SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }} + SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }} + SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }} - name: Get short SHA uses: benjlevesque/short-sha@v1.2