Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
testing new version checker
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Mar 6, 2024
1 parent ce00932 commit 860a670
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/new-rc-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,35 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get Latest Release
id: get_latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
# excludes: rc, alpha, beta # Optional. Exclude keywords like rc, alpha, beta releases.

- name: Bump release candidate version
- name: Bump possible release candidate version
id: bump_version
uses: christian-draeger/increment-semantic-version@1.0.2
with:
current-version: ${{ steps.get_latest_release.outputs.release }}
version-fragment: "rc"
- name: Check out the branch or tag
id: vars
run: |
# echo "version=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
VERSION=${{ github.ref_name }}
elif [[ $GITHUB_REF =~ ^refs/heads/release/.* ]]; then
VERSION=${{ steps.bump_version.outputs.next-version }}
else
VERSION=0.0.1
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: LOG Release Candidate
run: |
echo "RELEASE: ${{ steps.bump_version.outputs.next-version }}"
echo "RELEASE: ${{ steps.vars.outputs.version }}"

0 comments on commit 860a670

Please sign in to comment.