diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index e0900b9..d8c9eac 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -26,7 +26,7 @@ jobs: VERSION=$(curl -s https://api.github.com/repos/gear-tech/gear/releases/latest | jq -r '.tag_name') echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: Download Gear node [release=build] + - name: Download Gear node run: | wget -O ./gear https://github.com/gear-tech/gear/releases/download/${{ steps.gear_release.outputs.version }}/gear chmod +x ./gear diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8fbef13..1e95ea6 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -1,4 +1,4 @@ -name: Create Release +name: "Create Release" on: push: @@ -10,13 +10,23 @@ jobs: build: name: Create Release runs-on: ubuntu-latest - if: github.event.head_commit.message =~ '^v\d.\d.\d$' steps: + - name: "Check commit msg" + id: check + run: | + if [[ ! ${{ github.event.head_commit.message }} =~ ^v\d.\d.\d$ ]]; then + echo "skip=true" >> $GITHUB_OUTPUT + else + echo "skip=false" >> $GITHUB_OUTPUT + fi + - name: Checkout code + if: steps.check.outputs.skip != 'true' uses: actions/checkout@master - name: Create Release + if: steps.check.outputs.skip != 'true' id: create_release uses: actions/create-release@latest env: diff --git a/.github/workflows/renew.yml b/.github/workflows/renew.yml index 7fb481d..9da07d1 100644 --- a/.github/workflows/renew.yml +++ b/.github/workflows/renew.yml @@ -41,7 +41,7 @@ jobs: create_pr: runs-on: ubuntu-latest - needs: check-release + needs: check_release if: needs.check_release.outputs.skip != 'true' env: VERSION: ${{ needs.check_release.outputs.version }}