Skip to content

Commit

Permalink
chore: simplified gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
builder555 committed Nov 7, 2024
1 parent 7eb7303 commit 6607f08
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,11 @@ jobs:
version: ${{ steps.semver-action.outputs.version }}
release-notes: ${{ steps.semver-action.outputs.release-notes }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get last version and hash
id: last-version
run: |
LAST_TAG=$(git describe --tags --abbrev=0 --match "v*.*.*" 2>/dev/null || echo "") || true
LAST_VERSION=$(echo $LAST_TAG | tr -d -c 0-9. || echo 0.0.0) || true
COMMIT_HASH=$(git rev-list -n 1 $LAST_TAG 2>/dev/null || echo "") || true
echo "hash=$COMMIT_HASH" >> $GITHUB_OUTPUT
echo "version=$LAST_VERSION" >> $GITHUB_OUTPUT
- name: Semver Action
id: semver-action
uses: builder555/simple-semver@v2
uses: builder555/simple-semver@v3
with:
last-version: ${{ steps.last-version.outputs.version }}
last-hash: ${{ steps.last-version.outputs.hash }}
github-token: ${{ secrets.GITHUB_TOKEN }}

create-release:
Expand Down

0 comments on commit 6607f08

Please sign in to comment.