From fdf3024530be2bf445768e304fc68b6021e56ce1 Mon Sep 17 00:00:00 2001 From: Jochem Date: Fri, 5 Jul 2024 14:25:35 +0200 Subject: [PATCH] Test action --- .github/workflows/set-appversion.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/set-appversion.yml b/.github/workflows/set-appversion.yml index b4324fe..c7cf9fc 100644 --- a/.github/workflows/set-appversion.yml +++ b/.github/workflows/set-appversion.yml @@ -18,11 +18,13 @@ jobs: with: ref: ${{ github.head_ref }} - - name: Install YQ + + - name: Find image version + uses: mikefarah/yq@v4.44.2 run: | - sudo add-apt-repository ppa:rmescandon/yq - sudo apt update - sudo apt install yq -y + export VERSION=$(yq '.librenms.image.tag' charts/librenms/values.yaml) + yq -e -i '.appVersion = $VERSION' charts/librenms/Chart.yaml + # Commit all changed files back to the repository - uses: stefanzweifel/git-auto-commit-action@v5 \ No newline at end of file