Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
osipov-mit committed Dec 4, 2024
1 parent d668f6d commit 897f59a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Release
name: "Create Release"

on:
push:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 897f59a

Please sign in to comment.