Fix version reference in git commit job
@@ -88,6 +88,9 @@ jobs:
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
+ # Pass version to subsequent steps
+ echo "::set-env name=VERSION::$VERSION"
+
# Update image version in application manifest
sed -Ei "s,(- image: docker.pkg.github.com)(.*),\1/${{ github.repository }}/$IMAGE_NAME:$VERSION," k8s/app.yaml
@@ -119,7 +122,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: ${{ env.DEPLOY_PUSH_BRANCH }}
- commit-message: chore: bump k8s manifest up CHIME ${VERSION}
+ commit-message: "chore: bump k8s manifest up CHIME ${{ env.VERSION }}"
rebase: 'true'
name: Chime CI
email: services@codeforphilly.com
