From b7c499ad047ba2a8eb27563534b7cd564145866f Mon Sep 17 00:00:00 2001 From: Vanshika Sabharwal <143436704+VanshikaSabharwal@users.noreply.github.com> Date: Tue, 21 Jan 2025 00:33:29 +0530 Subject: [PATCH] Update pull-request.yml --- .github/workflows/pull-request.yml | 115 ++++++++++++++++------------- 1 file changed, 63 insertions(+), 52 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 492dac1305e..cb279798574 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -126,58 +126,69 @@ jobs: name: Checks if sensitive files have been changed without authorization needs: [Code-Quality-Checks] runs-on: ubuntu-latest - steps: - - name: Checkout this repository - uses: actions/checkout@v4.2.2 - - id: changed_files - name: Get changed files - uses: tj-actions/changed-files@v45.0.4 - with: - files: | - .coderabbit.yaml - Caddyfile - codegen.ts - Dockerfile* - docker-compose* - .dockerignore - .env.sample - .env_test - eslint.config.mjs - envFiles/** - .gitignore - init-mongo.sh - .prettierignore - .prettierrc.json - .pylintrc - .github/** - biome.jsonc - drizzle_migrations/** - renovate.json - requirements.txt - schema.graphql - CODEOWNERS - LICENSE - tsconfig.json - vitest.config.ts - pnpm-lock.yaml - package.json - package-lock.json - .nojekyll - docs/docusaurus.config.ts - docs/sidebar* - setup.ts - tsconfig.build.json - vite.config.mts - CNAME - CODE_OF_CONDUCT.md - CODE_STYLE.md - CONTRIBUTING.md - DOCUMENTATION.md - INSTALLATION.md - ISSUE_GUIDELINES.md - PR_GUIDELINES.md - README.md - + steps: + - name: Checkout this repository + uses: actions/checkout@v4.2.2 + - id: changed_files + name: Get changed files + uses: tj-actions/changed-files@v45.0.4 + with: + files: | + .coderabbit.yaml + Caddyfile + codegen.ts + Dockerfile* + docker-compose* + .dockerignore + .env.sample + .env_test + eslint.config.mjs + envFiles/** + .gitignore + init-mongo.sh + .prettierignore + .prettierrc.json + .pylintrc + .github/** + biome.jsonc + drizzle_migrations/** + renovate.json + requirements.txt + schema.graphql + CODEOWNERS + LICENSE + tsconfig.json + vitest.config.ts + pnpm-lock.yaml + package.json + package-lock.json + .nojekyll + docs/docusaurus.config.ts + docs/sidebar* + setup.ts + tsconfig.build.json + vite.config.mts + CNAME + CODE_OF_CONDUCT.md + CODE_STYLE.md + CONTRIBUTING.md + DOCUMENTATION.md + INSTALLATION.md + ISSUE_GUIDELINES.md + PR_GUIDELINES.md + README.md + - env: + CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }} + if: steps.changed_files.outputs.any_changed == 'true' || steps.changed_files.outputs.any_deleted == 'true' + name: Show changed files + run: | + echo "Unauthorized changes were made in the following files:" + for FILE in ${CHANGED_FILES}; do + echo "$FILE" + done + echo "To override this, apply the 'ignore-sensitive-files-pr' label" + exit 1 + Run-Tests: name: Run tests for talawa api runs-on: ubuntu-latest