From 1d2fd5b40f2ba76556fa98cd79b8a496140f21c1 Mon Sep 17 00:00:00 2001 From: juicer Date: Thu, 2 Jan 2025 21:29:30 -0800 Subject: [PATCH] change it to support run in branch Signed-off-by: juicer --- .github/workflows/build-fb-image.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-fb-image.yaml b/.github/workflows/build-fb-image.yaml index 640ffa633..45737ffbd 100644 --- a/.github/workflows/build-fb-image.yaml +++ b/.github/workflows/build-fb-image.yaml @@ -21,6 +21,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} - name: Read fluent-bit version from file id: get-version @@ -41,7 +43,7 @@ jobs: - name: Determine image version tag id: determine-tags run: | - VERSION=${{ steps.get-version.outputs.VERSION }} + VERSION=${{ needs.get-version.outputs.VERSION }} VERSION_WITHOUT_V=${VERSION#v} MAJOR_MINOR=$(echo $VERSION_WITHOUT_V | cut -d. -f1-2)