Skip to content

🚀 Update to 1.140.1-2024.10.17 (#632) #96

🚀 Update to 1.140.1-2024.10.17 (#632)

🚀 Update to 1.140.1-2024.10.17 (#632) #96

name: Release - Autotag
on:
push:
branches:
- main
paths:
- VERSION
jobs:
create-tag:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up yq
uses: frenck/action-setup-yq@v1
- name: Retrieve Release Version
id: info
shell: bash
run: |
set -eu
echo "carto-release-version=$(yq .appVersion chart/Chart.yaml)" >> ${GITHUB_OUTPUT}
echo "chart-release-version=$(yq .version chart/Chart.yaml)" >> ${GITHUB_OUTPUT}
- name: Check version
id: version
env:
RELEASE_VERSION: ${{ steps.info.outputs.carto-release-version }}
shell: bash
run: |
set -eu
RELEASE_VERSION_NORMALIZED="${RELEASE_VERSION//-rc.*/}"
echo "RELEASE_VERSION_NORMALIZED=${RELEASE_VERSION_NORMALIZED}"
echo "release-version-normalized=${RELEASE_VERSION_NORMALIZED}" >> $GITHUB_OUTPUT
RC_REGEX="^20[0-9]{2}.([1-9]|1[012]).([1-9]|[12][0-9]|3[01])-rc.[0-9.]+$"
if [[ "${RELEASE_VERSION}" =~ ${RC_REGEX} ]]; then
echo "This is a Release Candidate... We will create a prerelease"
echo "prerelease=true" >> ${GITHUB_OUTPUT}
else
echo "We will create a Release"
echo "prerelease=false" >> ${GITHUB_OUTPUT}
fi
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.X_GITHUB_CARTOFANTE }}
commit: ${{ github.sha }}
name: ${{ steps.info.outputs.chart-release-version }}
tag: ${{ steps.info.outputs.chart-release-version }}
prerelease: ${{ steps.version.outputs.prerelease }}
body: "Release notes for this version are available at https://docs.carto.com/carto-self-hosted/release-notes#${{ steps.version.outputs.release-version-normalized }}"