Skip to content

tests: remove get_format integration checks (#4668) #41

tests: remove get_format integration checks (#4668)

tests: remove get_format integration checks (#4668) #41

Workflow file for this run

name: Auto Release
permissions:
contents: write
packages: write
on:
push:
tags:
- '*'
jobs:
tag:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.tag.outputs.version }}
is_release: ${{ steps.check.outputs.is_release }}
steps:
- name: Get the version
id: tag
run: echo "version=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
- name: Check if release version
id: check
run: |
VERSION="${{ steps.tag.outputs.version }}"
if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-release\.[0-9]+)?$ ]]; then
echo "is_release=true" >> $GITHUB_OUTPUT
else
echo "is_release=false" >> $GITHUB_OUTPUT
fi
- name: Echo tag
run: echo ${{ steps.tag.outputs.version }} is_release=${{ steps.check.outputs.is_release }}
release:
name: release
needs: tag
if: needs.tag.outputs.is_release == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Publish Release
env:
GH_TOKEN: ${{ github.token }}
run: |-
VERSION="${{needs.tag.outputs.version}}"
TITLE="${VERSION}"
NOTE="## 📦 TiCDC $VERSION Release
### 🐧 Linux Downloads
\`\`\`bash
# Linux AMD64
wget https://tiup-mirrors.pingcap.com/cdc-$VERSION-linux-amd64.tar.gz
# Linux ARM64
wget https://tiup-mirrors.pingcap.com/cdc-$VERSION-linux-arm64.tar.gz
\`\`\`
### 🍎 macOS Downloads
\`\`\`bash
# macOS AMD64 (Intel)
wget https://tiup-mirrors.pingcap.com/cdc-$VERSION-darwin-amd64.tar.gz
# macOS ARM64 (Apple Silicon)
wget https://tiup-mirrors.pingcap.com/cdc-$VERSION-darwin-arm64.tar.gz
\`\`\`
### 🐳 Docker Images
\`\`\`bash
# Pull the latest release
docker pull pingcap/ticdc:$VERSION
\`\`\`"
gh release create "$VERSION" --verify-tag -t "$TITLE" -n "$NOTE"