From 8b9ffbfe2e89f7506aec414d3e11409d2c8256bd Mon Sep 17 00:00:00 2001 From: Love98 Date: Tue, 17 Sep 2024 11:27:05 +0800 Subject: [PATCH] fix: double released in ci.yml make previous version equal to current version --- .github/workflows/build.yml | 2 -- .github/workflows/ci.yml | 33 --------------------------------- 2 files changed, 35 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d234365..5059bdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,10 +100,8 @@ jobs: elif [ ${old_array[1]} != ${new_array[1]} ] then echo ::set-output name=push::'true' - else echo ::set-output name=push::'false' - fi - name: Set up QEMU diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 8a593fd..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: CI - -on: - - push - - pull_request - -jobs: - - test: - runs-on: ubuntu-latest - steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: '1.20.0' - - - uses: actions/checkout@v2 - - name: Run tests - run: go test -v ./... -tags skipCi - - semantic-release: - needs: [test] - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v2 - - name: Run semantic-release - if: github.repository == 'casbin/caswaf' && github.event_name == 'push' - run: | - npm install --save-dev semantic-release@17.2.4 - npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file