From 9a52af87bca067a7f3911e5bff2762700a6fe547 Mon Sep 17 00:00:00 2001 From: Phil Jay Date: Thu, 10 Oct 2024 18:26:44 +1100 Subject: [PATCH] Update test-and-release.yml Use `v2` of `action-gh-release` Use action directly instead of using the scripts to provide a more direct example of use --- .github/workflows/test-and-release.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index c838dfd..881da40 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -139,19 +139,14 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Lookup version - id: version-lookup - run: ./version-lookup.sh - - - name: Increment version - id: version-increment - run: ./version-increment.sh - env: - current_version: ${{ steps.version-lookup.outputs.CURRENT_VERSION }} - scheme: calver + - name: Get next version + uses: ./ + id: version + with: + scheme: 'calver' - name: Release version - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: ${{ github.ref_name == github.event.repository.default_branch }} with: draft: false