Skip to content

Commit f36d829

Browse files
freemaclaude
andcommitted
ci: auto-update v1 tag on main push after Docker build
The floating v1 tag is used by consumers via `uses: freema/codeforge@v1`. This job force-updates it to HEAD of main after every successful CI run, so users always get the latest version without changing their workflows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0335bd4 commit f36d829

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,17 @@ jobs:
201201
tags: ghcr.io/freema/codeforge-action:latest
202202
cache-from: type=gha
203203
cache-to: type=gha,mode=max
204+
205+
# Update floating v1 tag so `uses: freema/codeforge@v1` always points to latest main
206+
tag:
207+
runs-on: ubuntu-latest
208+
needs: [docker]
209+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
210+
permissions:
211+
contents: write
212+
steps:
213+
- uses: actions/checkout@v4
214+
- name: Update v1 tag
215+
run: |
216+
git tag -f v1
217+
git push origin v1 --force

0 commit comments

Comments
 (0)