Skip to content

Commit

Permalink
Update workflow: Remove the example-job
Browse files Browse the repository at this point in the history
  • Loading branch information
yashksaini-coder committed Oct 1, 2024
1 parent b0024a8 commit ebff2a6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/update-structure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- yash/fix-4

jobs:
example-job:
runs-on: ubuntu-latests
detect-and-update-structure:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -25,14 +25,15 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install PyGithub
- name: Run update script
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python .github/scripts/update_dir_structure.py

- name: Commit and push if changed
run: |
git config --local user.email "115717039+yashksaini-coder@users.noreply.github.com"
git config --local user.name "yashksaini-coder"
git add .
git diff --quiet && git diff --staged --quiet || (git commit -m "Update repo structure" && git push)
git config --local user.email "115717039+yashksaini-coder@users.noreply.github.com"
git config --local user.name "yashksaini-coder"
git add .
git diff --quiet && git diff --staged --quiet || (git commit -m "Update repo structure" && git push)

0 comments on commit ebff2a6

Please sign in to comment.