diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da1a138..ec93fe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,13 @@ jobs: steps: - uses: actions/checkout@v4 - uses: bazelbuild/setup-bazelisk@95c9bf48d0c570bb3e28e57108f3450cd67c1a44 # v2.0.0 + - name: get pushed tag + id: get_pushed_tag + run: echo ::set-output name=TAG::v1.0.0 + - name: get version + id: get_version + # strip the "v" from tag + run: echo "::set-output name=version::$(echo ${{ steps.get_pushed_tag.outputs.TAG }} | tail -c+2)" - run: bazel build //... - run: cd examples && bazel build //... - run: cd examples && bazel test //...