Skip to content

Commit

Permalink
deployment workflow: fix tag version extraction (#137)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a pull request to our repository. -->

## Description

deployment workflow: fix tag version extraction

## Changes Made

- deployment workflow: fix tag version extraction

## Related Issues

N/A

## Checklist

<!-- Please check off the following items by putting an "x" in the box:
-->

- [x] I have used a PR title that is descriptive enough for a release
note.
- [ ] I have tested these changes locally.
- [ ] I have added appropriate tests or updated existing tests.
- [ ] I have tested these changes on a dedicated VM or a customer VM
[name of the VM]
- [ ] I have added appropriate documentation or updated existing
documentation.

---------

Co-authored-by: chicco785 <[email protected]>
  • Loading branch information
cosimomeli and chicco785 authored Sep 23, 2024
1 parent 8ccb4b7 commit 82aab1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ jobs:
- name: Get image tag from git tag
if: github.ref_type == 'tag'
run: |
echo "IMAGE_TAG=${$(echo ${{github.ref}} | cut -d'/' -f3)#v}" >> $GITHUB_ENV
tag_version="$(echo ${{github.ref}} | cut -d'/' -f3)"
echo "IMAGE_TAG=${tag_version#v}" >> $GITHUB_ENV
- name: Get image tag from main branch
if: github.ref_type == 'branch' && github.ref == 'refs/heads/main'
run: |
Expand Down
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GitHub Workflows Release Notes

## 0.0.3-dev - 2024-09-20
## 0.0.3-dev - 2024-09-23

### Features

Expand All @@ -23,6 +23,7 @@

### Bug Fixes

- deployment workflow: fix tag version extraction (PR #137 by @cosimomeli)
- Fix vulnerability-scan typo (PR #133 by @cosimomeli)
- golang workflow: fix changes check (PR #130 by @chicco785)
- Fix deployment workflow on PRs (PR #120 by @cosimomeli)
Expand Down

0 comments on commit 82aab1b

Please sign in to comment.