Skip to content

feat: expose cache as a map of filtered seed (#775) #468

feat: expose cache as a map of filtered seed (#775)

feat: expose cache as a map of filtered seed (#775) #468

name: Create new version tag
on:
push:
branches: [main]
jobs:
create-new-version-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 20
- name: Build
uses: gradle/gradle-build-action@v3
with:
arguments: :xef-openai-client-generator:openaiClientGenerate build
- name: Read version
id: read-version
run: echo "version=$(head -n 1 build/semver/version.txt)" >> "$GITHUB_OUTPUT"
- name: Create new version tag
if: |
contains(steps.read-version.outputs.version, 'alpha') ||
contains(steps.read-version.outputs.version, 'beta') ||
contains(steps.read-version.outputs.version, 'rc')
uses: gradle/gradle-build-action@v3
with:
arguments: createSemverTag -Psemver.stage=auto
- name: Push Tag
if: |
contains(steps.read-version.outputs.version, 'alpha') ||
contains(steps.read-version.outputs.version, 'beta') ||
contains(steps.read-version.outputs.version, 'rc')
run: git push --follow-tags