From 0188e621267b86e2e2a8df4ebfafb9300bead2ea Mon Sep 17 00:00:00 2001 From: tomoron Date: Fri, 30 Jan 2026 23:45:10 +0100 Subject: [PATCH] add push to latest action --- action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/action.yml b/action.yml index e8088d0..572cb2d 100644 --- a/action.yml +++ b/action.yml @@ -33,5 +33,16 @@ runs: - name: Build and push uses: docker/build-push-action@v4 with: + context: "{{defaultContext}}:${{ input.path }}" push: true tags: git.tmoron.fr/${{ inputs.name }}:latest + + - name: push to latest branch + run: | + if ! git ls-remote --exit-code --heads origin latest; then + git checkout -b latest + git push origin latest + else + git switch latest + git merge latest + fi