mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-08-24 18:48:00 +02:00
30 lines
831 B
YAML
30 lines
831 B
YAML
# Create or update a latest git tag when releasing a stable version of Meilisearch
|
|
name: Update latest git tag
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
check-version:
|
|
name: Check the version validity
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Check release validity
|
|
if: github.event_name == 'release'
|
|
run: bash .github/scripts/check-release.sh
|
|
|
|
update-latest-tag:
|
|
runs-on: ubuntu-latest
|
|
needs: check-version
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: rickstaa/action-create-tag@v1
|
|
with:
|
|
tag: "latest"
|
|
message: "Latest stable release of Meilisearch"
|
|
# Move the tag if `latest` already exists
|
|
force_push_tag: true
|
|
github_token: ${{ secrets.MEILI_BOT_GH_PAT }}
|