diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml deleted file mode 100644 index 00b864d6d2c..00000000000 --- a/.github/workflows/jekyll-gh-pages.yml +++ /dev/null @@ -1,58 +0,0 @@ -# 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: - - 'Pagetual/items_all.json' - - 'Pagetual/pagetualRules.json' - workflow_run: - workflows: ["Update Version on File Change"] - types: - - completed - - # 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 - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/json-validator.yml b/.github/workflows/json-validator.yml deleted file mode 100644 index a726236d040..00000000000 --- a/.github/workflows/json-validator.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Validate JSON - -on: - pull_request: - paths: - - 'Pagetual/pagetualRules.json' - -jobs: - validate-json: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: json-yaml-validate - uses: GrantBirki/json-yaml-validate@v3.0.0 - id: json-yaml-validate - with: - json_schema: Pagetual/pagetual.schema.json - files: | - Pagetual/pagetualRules.json \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 9da5ef0d1fa..00000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Collect wedata for pagetual - -on: - schedule: - - cron: '0 1 * * *' - workflow_dispatch: - -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - #- name: Download json - # run: | - # wget --no-cache -O "Pagetual/items_all.json" http://wedata.net/databases/AutoPagerize/items_all.json - - #- uses: technote-space/get-diff-action@v6 - # with: - # FILES: | - # items_all.json - - #- name: Commit - # if: env.GIT_DIFF - # run: | - # git config user.name "github-actions[bot]" - # git config user.email "512946+github-actions[bot]@users.noreply.github.com" - # git add Pagetual/items_all.json - # git status - # git commit -m "auto commit from github actions" - - #- name: Push - # if: env.GIT_DIFF - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # branch: master - - name: Update file - id: update_file - uses: TheLastProject/keep-remote-file-locally-up-to-date-action@v1 - with: - url: http://wedata.net/databases/AutoPagerize/items_all.json - file_in_repo: Pagetual/items_all.json - git_user: hoothin-update - git_email: rixixi@gmail.com diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml deleted file mode 100644 index 0d1af146533..00000000000 --- a/.github/workflows/update_version.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Update Version on File Change -on: - push: - paths: - - 'Pagetual/items_all.json' - - 'Pagetual/pagetualRules.json' - workflow_run: - workflows: ["Collect wedata for pagetual"] - types: - - completed - -jobs: - update_version: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check file modification timestamps - id: check_file_timestamps - run: | - version_timestamp=$(git log -1 --format="%at" Pagetual/version) - items_all_timestamp=$(git log -1 --format="%at" Pagetual/items_all.json) - pagetualRules_timestamp=$(git log -1 --format="%at" Pagetual/pagetualRules.json) - if [[ $version_timestamp < $items_all_timestamp || $version_timestamp < $pagetualRules_timestamp ]]; then - version=$(cat Pagetual/version) - else - version=0 - echo "Version file is not updated. Skipping version read." - fi - echo "VERSION=$version" >> $GITHUB_ENV - - - name: Increment version - if: env.VERSION != '0' - id: increment_version - run: echo "VERSION=$((VERSION + 1))" >> $GITHUB_ENV - - - name: Update version file - if: env.VERSION != '0' - run: echo $VERSION > Pagetual/version - - - name: Commit version update - if: env.VERSION != '0' - run: | - git config --local user.email "rixixi@gmail.com" - git config --local user.name "hoothin-update" - git add Pagetual/version - git commit -m "Update version of Pagetual rules to $VERSION" - git push https://${{ secrets.ACTION_SECRET }}@github.com/${{ github.repository }}