diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 35621986d..8328b2183 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -45,6 +45,15 @@ jobs: fetch-depth: 50 submodules: true + - name: Get branch name + id: branch-name + uses: tj-actions/branch-names@v7 + + - name: "Checkout branch" + if: steps.branch-name.outputs.is_default == 'false' + run: | + git checkout ${{ steps.branch-name.outputs.current_branch }} + - name: "Install system dependencies" run: | sudo apt-get install brotli pigz parallel rename --yes -qq >/dev/null