Skip to content

Commit

Permalink
ci: create latest supported kafka version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Fresa committed Nov 12, 2024
1 parent b481663 commit b190d4e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/set-kafka-version-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Set Kafka Version Tag

on:
push:
branches:
- '**'
tags-ignore:
- '**'

jobs:
set_kafka_version_tag:
name: Set Kafka Version Tag
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
# Create tag
contents: write
steps:
- uses: actions/checkout@v3
- name: Read Kafka Release Version
id: kafka-release-version
shell: bash
run: |
version=$(cat KafkaReleaseTag.json | jq '.name' | xargs)
echo "version=$version" >> $GITHUB_OUTPUT
- name: Update Kafka Release Tag
uses: EndBug/latest-tag@v1
with:
ref: Kafka-${{ steps.kafka-release-version.version }}
description: Kafka version ${{ steps.kafka-release-version.version }}
1 change: 1 addition & 0 deletions Kafka.Protocol.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.github\workflows\ci.yml = .github\workflows\ci.yml
.github\CODEOWNERS = .github\CODEOWNERS
README.md = README.md
.github\workflows\set-kafka-version-tag.yml = .github\workflows\set-kafka-version-tag.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Kafka.Protocol.SourceGenerator", "Kafka.Protocol.SourceGenerator\Kafka.Protocol.SourceGenerator.csproj", "{4ED349C3-7623-46AE-883D-8EE0C1595A00}"
Expand Down

0 comments on commit b190d4e

Please sign in to comment.