diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 8b77b194..ec71a5d1 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -20,10 +20,20 @@ on: # Set this to the mainline branch you are using branches: - main + paths-ignore: + - 'docs/**' + - 'decision-log/**' + - 'cicd/**' + - '*.md' pull_request: # Run when pull requests are opened or updated branches: - main + paths-ignore: + - 'docs/**' + - 'decision-log/**' + - 'cicd/**' + - '*.md' # GitHub Actions workflow to deploy to Azure using azd # Ensure only one deployment runs at a time to prevent conflicts @@ -47,17 +57,17 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: persist-credentials: false - name: Install azd - uses: Azure/setup-azd@c495e71ba59e44bfaaac10a32c8ee90d191ca4a3 # v2.2.1 + uses: Azure/setup-azd@c495e71ba59e44bfaaac10a32c8ee90d191ca4a3 # v2.2.1 with: version: '1.20.0' # Specify your desired azd version here - name: Setup Node.js - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: node-version: '18.x' @@ -67,7 +77,7 @@ jobs: terraform_version: 1.13.3 - name: Install TFLint - uses: terraform-linters/setup-tflint@4cb9feea73331a35b422df102992a03a44a3bb33 # v6.2.1 + uses: terraform-linters/setup-tflint@4cb9feea73331a35b422df102992a03a44a3bb33 # v6.2.1 with: tflint_version: v0.58.1 github_token: ${{ secrets.GITHUB_TOKEN }} # Used to avoid rate @@ -121,7 +131,7 @@ jobs: pac help - name: Set Up Python - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # 6.1.0 + uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # 6.1.0 with: python-version: "3.x" @@ -182,7 +192,7 @@ jobs: azd provision --no-prompt - - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 if: success() || failure() with: name: sarif-reports @@ -253,4 +263,4 @@ jobs: --name "$OPENAI_RESOURCE_NAME" || echo "Resource may not be in soft-delete state or already purged" else echo "OpenAI resource information not found in environment outputs. Skipping purge." - fi + fi