From 2be534eb41dda0297648f80856ed345aa2ca9224 Mon Sep 17 00:00:00 2001 From: Karthik Date: Mon, 21 Nov 2022 09:20:53 +0530 Subject: [PATCH 1/2] Delete github-pages.yml --- .github/workflows/github-pages.yml | 41 ------------------------------ 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml deleted file mode 100644 index 2dfecf72..00000000 --- a/.github/workflows/github-pages.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: github-pages - -on: - push: - branches: - - master - - workflow_run: - workflows: [run-cron] - types: - - completed - - workflow_dispatch: - -jobs: - build-and-deploy: - runs-on: ubuntu-20.04 - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Install dependencies and build - uses: actions/setup-node@v3 - with: - node-version: '14' - - run: npm ci - - run: npm run build - - - name: Check GitHub Pages status - uses: crazy-max/ghaction-github-status@v3 - with: - pages_threshold: major_outage - - - name: Deploy to gh-pages branch - if: success() - uses: crazy-max/ghaction-github-pages@v3 - with: - target_branch: gh-pages - build_dir: build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7ae344d0f281f83d92d6b4638b12cc9a1595e181 Mon Sep 17 00:00:00 2001 From: Karthik Date: Mon, 21 Nov 2022 09:21:05 +0530 Subject: [PATCH 2/2] Delete run-cron.yml --- .github/workflows/run-cron.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows/run-cron.yml diff --git a/.github/workflows/run-cron.yml b/.github/workflows/run-cron.yml deleted file mode 100644 index 4323290d..00000000 --- a/.github/workflows/run-cron.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: run-cron - -on: - schedule: - - cron: '0 12 * * 0' - - workflow_dispatch: - -jobs: - update: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.x' - architecture: 'x64' - - run: | - python -m pip install --upgrade pip - pip install requests python-leetcode - - run: | - python cron/update_questions.py - env: - LEETCODE_SESSION_TOKEN: ${{ secrets.LEETCODE_SESSION_TOKEN }} - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update questions via run-cron GitHub Action