From a702b9cd838f40949dcbfc29d807696c25a60e95 Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Wed, 7 Sep 2022 00:48:19 +0800 Subject: [PATCH] test actions2 --- .github/workflows/test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 729aabe..c8bc456 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" - name: Set up Go uses: actions/setup-go@v2 @@ -19,4 +24,8 @@ jobs: run: go build -o sib - name: run - run: ./sib version \ No newline at end of file + run: CURRENT_VERSION=$(./sib version) + + - name: compare + run: ${{ steps.previoustag.outputs.tag }} == $CURRENT_VERSION +