Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluemangoo authored May 6, 2024
1 parent 2c9b2b2 commit a135ab3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
build:
if: ${{ !contains(github.event.commits[0].message, '[Release]') }}
if: ${{ !contains(github.event.commits[0].message, '+release') }}
runs-on: ubuntu-latest

steps:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
check:
runs-on: ubuntu-latest
if: ${{ contains(github.event.commits[0].message, '[Release]') }}
if: ${{ contains(github.event.commits[0].message, '+release') }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -26,7 +26,7 @@ jobs:
exit 1
build:
runs-on: ${{ matrix.host_os }}
if: ${{ contains(github.event.commits[0].message, '[Release]') }}
if: ${{ contains(github.event.commits[0].message, '+release') }}
needs: check
strategy:
matrix:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
if: ${{ contains(github.event.commits[0].message, '[Release]') }}
if: ${{ contains(github.event.commits[0].message, '+release') }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -135,11 +135,10 @@ jobs:
echo "version=$version">>$GITHUB_ENV
release_info=release.md
echo "release_info=$release_info">>$GITHUB_ENV
echo "## Changes" > $release_info
echo "## Commits" > $release_info
number=$(git log --oneline $(git rev-parse `git describe --tags --abbrev=0`)..HEAD | wc -l)
echo "$(git log --pretty='- [%h] %s' -$number)" >> $release_info
- name: Create Release
if: ${{ contains(github.event.commits[0].message, '[Release]') }}
uses: ncipollo/[email protected]
with:
artifacts: artifacts/*
Expand Down

0 comments on commit a135ab3

Please sign in to comment.