From e4e4fa1d74c20d73695ffe9de170d0c529721878 Mon Sep 17 00:00:00 2001 From: Khing <53417443+kRHYME7@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:36:03 +0800 Subject: [PATCH 1/4] Update super-linter.yml --- .github/workflows/super-linter.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index be34a05..4f04c11 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -18,9 +18,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 - - name: Lint Code Base uses: github/super-linter@v4 @@ -28,3 +26,11 @@ jobs: VALIDATE_ALL_CODEBASE: false 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 From 8e8aca5ce3b7132508e064e27f3974e76099ec68 Mon Sep 17 00:00:00 2001 From: Khing <53417443+kRHYME7@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:49:02 +0800 Subject: [PATCH 2/4] Update super-linter.yml --- .github/workflows/super-linter.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 4f04c11..c6ba69e 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -1,9 +1,3 @@ -# This workflow executes several linters on changed files based on languages used in your code base whenever -# you push a code or open a pull request. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/github/super-linter name: Lint Code Base on: @@ -34,3 +28,15 @@ jobs: - 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 README.md # Specify the README file or use . for all changes + git commit -m "Update README from GitHub Actions" || echo "No changes to commit" + + # - name: Push changes + # run: git push origin hyde-gallery # Push changes back to the branch + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the GitHub token for authentication From 259f073f96f46e35467edd435131fdfbb5846203 Mon Sep 17 00:00:00 2001 From: Khing <53417443+kRHYME7@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:58:38 +0800 Subject: [PATCH 3/4] Update super-linter.yml --- .github/workflows/super-linter.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 5537baa..0f6fec9 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -36,8 +36,7 @@ jobs: git add README.md # Specify the README file or use . for all changes git commit -m "Update README from GitHub Actions" || echo "No changes to commit" - # - name: Push changes - # run: git push origin hyde-gallery # Push changes back to the branch - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the GitHub token for authentication - + - name: Push changes + run: git push origin hyde-gallery # Push changes back to the branch + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the GitHub token for authentication From 47ebc8f78f87ab8f5f3c4a369a9ba0146003cc8e Mon Sep 17 00:00:00 2001 From: Khing <53417443+kRHYME7@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:45:14 +0800 Subject: [PATCH 4/4] Update super-linter.yml --- .github/workflows/super-linter.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 0f6fec9..03577fc 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -35,8 +35,3 @@ jobs: git config --local user.email "action@github.com" git add README.md # Specify the README file or use . for all changes git commit -m "Update README from GitHub Actions" || echo "No changes to commit" - - - name: Push changes - run: git push origin hyde-gallery # Push changes back to the branch - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the GitHub token for authentication