From 913f7ceadd11250e78d442d3e941616a74dcb6cb Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Tue, 19 Nov 2024 20:36:55 +0545 Subject: [PATCH] feat: Create ci.yml (#54) * feat: Create ci.yml * Update README with new data * Discard changes to README.md * Update README with new data --------- Co-authored-by: kRHYME7 Co-authored-by: github-actions --- .github/workflows/ci.yml | 42 +++++++++++++++++++++++++ .github/workflows/super-linter.yml | 49 ------------------------------ README.md | 4 +-- 3 files changed, 43 insertions(+), 52 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/super-linter.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aec4e18 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: Update README on Push + +on: + push: + branches: + - hyde-gallery + +jobs: + update-readme: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" # Use the latest Python version + + + - name: Pull the latest changes from remote main branch + run: | + git pull --no-rebase + + - name: Run Python script to update README + run: | + python generate_readme.py + + - name: Commit changes + run: | + # Configure git user info + git config --global user.name "github-actions" + git config --global user.email "github-actions@github.com" + + # Add and commit the changes to README.md + git add README.md + git commit -m "Update README with new data" + + - name: Push changes to remote repository + run: | + git push diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml deleted file mode 100644 index 1ba2b06..0000000 --- a/.github/workflows/super-linter.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Lint Code Base - -on: - push: - branches: ["hyde-gallery"] - pull_request: - branches: ["hyde-gallery"] -jobs: - run-lint: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Lint Code Base - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - VALIDATE_PYTHON: false - VALIDATE_JSON: true - DEFAULT_BRANCH: "hyde-gallery" - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.x" # Specify the Python version you need - - - name: Run generate_readme.py - run: python generate_readme.py # Run the script from the root directory - - - name: Commit changes - run: | - git config --local user.name "GitHub Action" - git config --local user.email "action@github.com" - git add . # Specify the README file or use . for all changes - git commit -m "Update README from GitHub Actions" || echo "No changes to commit" - - - name: Commit changed files - uses: stefanzweifel/git-auto-commit-action@v2.3.0 - with: - commit_message: Generate README Table - branch: ${{ github.head_ref }} - commit_options: "--no-verify --signoff" - file_pattern: README.md - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 9b10414..51e12c2 100755 --- a/README.md +++ b/README.md @@ -10,12 +10,10 @@ | Theme | Description | Author | | --- | --- | --- | -| [![AbyssGreen](https://placehold.co/180x50/373C3F/83B38E?text=AbyssGreen&font=Oswald)](https://github.com/Itz-Abhishek-Tiwari/AbyssGreen) | AbyssGreen is a theme based on the Everforst color scheme | [Itz-Abhishek-Tiwari](https://github.com/Itz-Abhishek-Tiwari) | -| [![Abyssal-Wave](https://placehold.co/180x50/16161D/C8C093?text=Abyssal-Wave&font=Oswald)](https://github.com/Itz-Abhishek-Tiwari/Abyssal-Wave) | Dive into the deep, where elegance meets the infinite night. | [Itz-Abhishek-Tiwari](https://github.com/Itz-Abhishek-Tiwari) | -| [![Another World](https://placehold.co/180x50/11111B/6AA9C9?text=Another+World&font=Oswald)](https://github.com/cyb3rgh0u1/Another-World) | Step beyond the horizon, where reality fades and imagination reigns supreme. | [cyb3rgh0u1](https://github.com/cyb3rgh0u1) | | [![Vanta Black](https://placehold.co/180x50/000000/FFFFFF?text=Vanta+Black&font=Oswald)](https://github.com/rishav12s/Vanta-Black) | Vanta Black inspired theme having the deepest blacks | [rishav12s](https://github.com/rishav12s) | | [![Bad Blood](https://placehold.co/180x50/030000/DF1010?text=Bad+Blood&font=Oswald)](https://github.com/HyDE-Project/hyde-gallery/tree/Bad-Blood) | Red & Black based theme. | [HyDE-Project](https://github.com/HyDE-Project) | | [![Greenify](https://placehold.co/180x50/0e120f/295233?text=Greenify&font=Oswald)](https://github.com/mahaveergurjar/Theme-Gallery/tree/Greenify) | Dark Green based theme for Hyde | [mahaveergurjar](https://github.com/mahaveergurjar) | +| [![Another World](https://placehold.co/180x50/11111B/6AA9C9?text=Another+World&font=Oswald)](https://github.com/cyb3rgh0u1/Another-World) | Step beyond the horizon, where reality fades and imagination reigns supreme. | [cyb3rgh0u1](https://github.com/cyb3rgh0u1) | | [![Hack the Box](https://placehold.co/180x50/061234/50AA09?text=Hack+the+Box&font=Oswald)](https://github.com/HyDE-Project/hyde-gallery/tree/Hack-the-Box) | Hacker based theme | [T-Crypt](https://github.com/T-Crypt) | | [![Oxo Carbon](https://placehold.co/180x50/161616/EE5396?text=Oxo+Carbon&font=Oswald)](https://github.com/rishav12s/Oxo-Carbon) | Oxo Carbon based theme for Hyde | [rishav12s](https://github.com/rishav12s) | | [![Decay Green](https://placehold.co/180x50/14161E/95D3AF?text=Decay+Green&font=Oswald)](https://github.com/HyDE-Project/hyde-themes/tree/Decay-Green) | Official Theme | [prasanthrangan](https://github.com/prasanthrangan) |