Skip to content

Commit

Permalink
fixing versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthganta182 committed Mar 3, 2024
1 parent 8ed79eb commit 2790d44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Minor version for each merge
id: taggerDryRun
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DRY_RUN: true
- name: echo new tag
run: |
echo "The next tag version will be: ${{ steps.taggerDryRun.outputs.new_tag }}"
- name: Read current version
id: read_version
run: echo "::set-output name=version::$(cat version.txt)"

- name: Increment version
id: increment_version
run: echo "::set-output name=next_version::v$(echo "${{ steps.read_version.outputs.version }}" | awk -F '.' '{print $1"."$2"."$3+1}')"

- name: Save incremented version
run: echo "${{ steps.increment_version.outputs.next_version }}" > version.txt

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down
Empty file added version.txt
Empty file.

0 comments on commit 2790d44

Please sign in to comment.