From 374a3638cbd8440e8086427a80353bac20ba20d062c5b587c6c0c9770142826a Mon Sep 17 00:00:00 2001 From: KoCoder Date: Sat, 6 Jul 2024 23:23:43 +0200 Subject: [PATCH] Use gitea.head_ref to switch to the correct-branch --- .gitea/workflows/release-tag.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release-tag.yml b/.gitea/workflows/release-tag.yml index fd7528a..5f35131 100644 --- a/.gitea/workflows/release-tag.yml +++ b/.gitea/workflows/release-tag.yml @@ -11,13 +11,13 @@ jobs: - name: "Print env" run: echo WORKSPACE - name: "Git clone" - run: git clone https://git.kocoder.xyz/${{ gitea.repository }}.git + run: git clone ${{ gitea.server_url }}${{ gitea.repository }}.git - name: "LS" run: ls -lisa - name: "LS ECHO" - run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.* }}"" + run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.head_ref }}"" - name: "Git switch" - run: git checkout ${{ gitea.ref }}" + run: git checkout ${{ gitea.head_ref }}" - uses: aevea/action-kaniko@master name: Run Kaniko to build our docker container.