Skip to content

Commit

Permalink
Update the version
Browse files Browse the repository at this point in the history
Signed-off-by: mprahl <[email protected]>
  • Loading branch information
mprahl committed Apr 11, 2024
1 parent 139241b commit 1ddab33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ jobs:
with:
fetch-depth: 1
path: stolostron/magic-mirror
- name: verify helm chart version
- name: verify package and helm chart version
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
chart_version="$(yq '.appVersion' helm/Chart.yaml)"
echo "Helm chart version: ${chart_version}"
echo "Tagged version : ${{ github.ref_name }}"
[[ "${chart_version}" == "${{ github.ref_name }}" ]]
package_version="v$(jq -r '.version' package.json)"
chart_version="$(yq e '.appVersion' helm/Chart.yaml)"
echo "package.json version: ${package_version}"
echo "Helm chart version : ${chart_version}"
echo "Tagged version : ${{ github.ref_name }}"
[[ "${package_version}" == "${{ github.ref_name }}" ]] &&
[[ "${chart_version}" == "${{ github.ref_name }}" ]]
- name: publish image
run: |
IMAGE_TAG="latest"
Expand Down
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: magic-mirror
description: A Helm chart to deploy Magic Mirror
type: application
version: 1.0.0
appVersion: "v1.3.0"
appVersion: "v1.3.1"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magic-mirror",
"version": "1.0.0",
"version": "1.3.1",
"description": "GitHub App that syncs upstream repositories with forks using PRs",
"engines": {
"node": ">=18"
Expand Down

0 comments on commit 1ddab33

Please sign in to comment.