From 969e853839d80962193a709aef3e465f475db170 Mon Sep 17 00:00:00 2001 From: Omkar Deshpande <47773862+OmkarDeshpande7@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:02:14 +0530 Subject: [PATCH] workflow dispatch manual (#148) * allow manuall artifact generation on main * typo --- .github/workflows/packer.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/packer.yml b/.github/workflows/packer.yml index 73aec67..62c40c4 100644 --- a/.github/workflows/packer.yml +++ b/.github/workflows/packer.yml @@ -124,6 +124,11 @@ jobs: echo "release_found=true" >> $GITHUB_ENV fi + - name: Check if manual trigger from main branch + if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' + run: echo "release_found=true" >> $GITHUB_ENV + id: check_manual_trigger + - name: Enable KVM group perms if: env.release_found == 'true' run: |