diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index ec275057..9bc30620 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -1,11 +1,13 @@ name: Setup GitHub Copilot Agent Environment -# This workflow configures the environment for GitHub Copilot agents -# It reuses configuration from the main Build-Test-And-Deploy workflow -# to ensure consistency and reduce duplication - on: workflow_dispatch: + push: + paths: + - '.github/workflows/copilot-setup-steps.yml' + pull_request: + paths: + - '.github/workflows/copilot-setup-steps.yml' permissions: contents: read @@ -13,8 +15,8 @@ permissions: jobs: copilot-setup-steps: runs-on: ubuntu-latest - environment: "BuildAndUploadImage" - + permissions: + contents: read steps: - uses: actions/checkout@v5 @@ -61,4 +63,4 @@ jobs: echo "Installing additional tools for Copilot agent environment..." # Install EF Core tools globally - dotnet tool install --global dotnet-ef \ No newline at end of file + dotnet tool install --global dotnet-ef