From aade350f865981751f5edff9874983a1ad96d931 Mon Sep 17 00:00:00 2001 From: sanhphanvan96 <28304961+sanhphanvan96@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:15:21 +0000 Subject: [PATCH] gh workflows --- .github/workflows/jekyll-gh-pages.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 5b51cde..16200be 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -1,17 +1,18 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll with GitHub Pages dependencies preinstalled on: # Runs on pushes targeting the default branch push: branches: ["master"] + paths-ignore: + - 'README.md' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: - contents: read + contents: write pages: write id-token: write @@ -32,6 +33,13 @@ jobs: uses: actions/configure-pages@v5 - name: Generate README run: ./generate_readme.sh + - name: Commit README + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add README.md + git commit -m 'Update README.md' + git push - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: