diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f78a1f..9de8eb4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,7 +67,7 @@ jobs: PI_HOSTS: ${{ secrets.PI_HOSTS }} PI_REPO_PATH: ${{ secrets.PI_REPO_PATH }} PI_USER: ${{ secrets.PI_USER }} - BRANCH_NAME: ${{ github.event.workflow_run.head_branch }} + BRANCH_NAME: ${{ github.event.workflow_run.head_branch || github.ref_name }} run: | # Split comma-separated PI_HOSTS into array IFS=',' read -ra HOSTS <<< "$PI_HOSTS"