From 2ae6153631a39b3090a0c5dac4273dd4ce28ee4b Mon Sep 17 00:00:00 2001 From: Roee Gadot Date: Thu, 10 Jun 2021 21:32:17 +0300 Subject: [PATCH] no message --- .github/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e7d58abe..3e015d724 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,17 @@ jobs: - uses: actions/checkout@v2 - name: Get base image name shell: bash - run: echo "##[set-output name=cal_ver;]$(echo $(date +'%Y.%m.%d'))" -# echo "##[set-output name=build_time_utc;]$(echo $(date -u))" -# echo "##[set-output name=build_timestamp;]$(echo $(date +%s))" + run: | + echo "##[set-output name=cal_ver;]$(echo $(date +'%Y.%m.%d'))" + echo "##[set-output name=build_time_utc;]$(echo $(date -u))" + echo "##[set-output name=build_timestamp;]$(echo $(date +%s))" + echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/}" id: version_parameters - name: Build CLI - run: cd cli && make build-all CAL_VER=${{ steps.version_parameters.outputs.cal_ver }} # BUILD_TIME_UTC=${steps.version_parameters.outputs.build_time_utc} BUILD_TIMESTAMP=${steps.version_parameters.outputs.build_timestamp} + run: cd cli && make build-all CAL_VER=${{ steps.version_parameters.outputs.cal_ver }} BUILD_TIME_UTC=${{ steps.version_parameters.outputs.build_time_utc }} BUILD_TIMESTAMP=${{ steps.version_parameters.outputs.build_timestamp }} - uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - artifacts: "cli/bin/**/" - commit: my-temp-release-check - tag: v0.0.1 \ No newline at end of file + artifacts: "cli/bin/**" + commit: ${{ steps.version_parameters.outputs.branch }} + tag: ${{ steps.version_parameters.outputs.cal_ver }} \ No newline at end of file