From 7bdae6d9412a78bacdfe5ad1e082a4b9c142481f Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 22 Sep 2024 20:16:58 -0400 Subject: [PATCH] Move action_ref to env --- .gitea/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e85ed39..4c35317 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,6 +8,7 @@ on: env: DHUB_UNAME: ${{ secrets.DHUB_UNAME }} DHUB_PWORD: ${{ secrets.DHUB_PWORD }} + branch: ${{ github.action_ref }} jobs: build: @@ -15,7 +16,7 @@ jobs: steps: - name: Pull latest from Git run: | - echo "${{ gitea.action_ref }}" + echo "${{ branch }}" pwd whoami mkdir -p /var/lib/act_runner/ @@ -27,7 +28,7 @@ jobs: cd tenorjs-v2 git pull fi - git checkout "${{ gitea.action_ref }}" + git checkout "${{ branch }}" - name: Run tests run: | cd /var/lib/act_runner/tenorjs-v2