Skip to content

Commit

Permalink
Create main .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet authored Apr 8, 2024
1 parent 03409a3 commit 975155e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main .yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Remove Duplicate Nodes

on:
push:
branches:
- main

jobs:
remove_duplicates:
runs-on: ubuntu-latest

if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Dependencies
run: pip install -r requirements.txt

- name: Run Python Script
run: python remove_duplicates.py

- name: Commit Changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git diff-index --quiet HEAD || git commit -m "Remove duplicate nodes"
git push

0 comments on commit 975155e

Please sign in to comment.