From 5ae479553566009a2c59fc0c64421d8d3986cc5a Mon Sep 17 00:00:00 2001 From: leejet Date: Mon, 21 Aug 2023 23:17:26 +0800 Subject: [PATCH] chore: fix tag_name --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ebe56a4..50e6a922 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,9 @@ on: types: [opened, synchronize, reopened] paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu'] +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + jobs: ubuntu-latest-cmake: runs-on: ubuntu-latest @@ -195,4 +198,4 @@ jobs: data: await fs.readFileSync(`./artifact/${file}`) }); } - } \ No newline at end of file + }