Skip to content

feat: implement new github app (#27) #8

feat: implement new github app (#27)

feat: implement new github app (#27) #8

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
update-latest-tag:
name: Update latest tag
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
- name: Update latest tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Delete the existing latest tag if it exists (both locally and remotely)
git tag -d latest 2>/dev/null || true
git push origin :refs/tags/latest 2>/dev/null || true
# Create new latest tag pointing to the current commit
git tag latest
git push origin latest
echo "✅ Updated 'latest' tag to point to ${{ github.ref_name }}"