Skip to content

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal authored Jan 20, 2025
1 parent cb6090f commit b7c499a
Showing 1 changed file with 63 additions and 52 deletions.
115 changes: 63 additions & 52 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7c499a

Please sign in to comment.