From 70d6f666a6e910650fb5ff628cf9fe6b06087060 Mon Sep 17 00:00:00 2001 From: Mohit Mishra Date: Sat, 2 Nov 2024 09:07:18 +0530 Subject: [PATCH] Add automatic pages update workflow --- .github/workflows/update-pages.yml | 80 ++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/update-pages.yml diff --git a/.github/workflows/update-pages.yml b/.github/workflows/update-pages.yml new file mode 100644 index 0000000..738c8a9 --- /dev/null +++ b/.github/workflows/update-pages.yml @@ -0,0 +1,80 @@ +# .github/workflows/update-pages.yml +name: Update Pages List + +on: + push: + branches: [ main ] + paths: + - '**.md' + workflow_dispatch: + +permissions: + contents: write + pages: write + +jobs: + update-pages: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: main + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Update index.html + run: | + python3 - <