Skip to content

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
palisadoes authored Jan 20, 2025
1 parent 4b441dc commit 4774ca8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ jobs:
run: cd talawa_lint && flutter pub get && cd ..
- name: Running pub get to fetch dependencies
run: flutter pub get
- name: Check and commit pubspec.lock changes
env:
HEAD_REF: ${{ github.head_ref }}
run: |
if [[ $(git status --porcelain pubspec.lock) ]]; then
echo "Changes detected in pubspec.lock. Auto-committing updates."
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add pubspec.lock
git commit -a -m "chore: Auto-update pubspec.lock in PR #${{ github.event.pull_request.number }}"
if ! git push origin HEAD:"$HEAD_REF"; then
echo "Failed to push changes. Please check if you have the correct permissions."
exit 1
fi
else
echo "No changes in pubspec.lock."
fi
- name: Checking for correct formatting of code
run: dart format --set-exit-if-changed .
- name: Count lines of code in each file
Expand All @@ -89,7 +72,6 @@ jobs:
run: |
chmod +x .github/workflows/compare_translations.py
python .github/workflows/compare_translations.py --directory lang
- name: Analysing codebase for default linting
run: flutter analyze --no-pub
- name: Analysing codebase for custom linting
Expand Down

0 comments on commit 4774ca8

Please sign in to comment.