Skip to content

Commit

Permalink
Adjust script for setting version
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bigler <nicolas.bigler@vshn.ch>
  • Loading branch information
TheBigLee committed Oct 6, 2023
1 parent cd9e8dd commit ae54ab7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'master'
- name: Change version in package
run: |
sed -i "s/componentVersion: .*/componentVersion: ${{ github.ref }}/g" package/main.yaml
yq -i '.parameters."pkg.appcat".componentVersion = "${GITHUB_REF#refs/*/} "' package/main.yaml
- uses: EndBug/add-and-commit@v7
with:
default_author: user_info
message: "Update component version in package to ${{ github.ref }}"
message: "Update component version in package to ${GITHUB_REF#refs/*/}"

0 comments on commit ae54ab7

Please sign in to comment.