From e769c5afe374aea563cb0b5ec7e6cd4e522612e7 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 14 Feb 2025 14:47:44 +0200 Subject: [PATCH] chore: remove action to generate prep files for docs (#11475) --- .github/workflows/generate-doc-files.yml | 60 ------------------------ 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/generate-doc-files.yml diff --git a/.github/workflows/generate-doc-files.yml b/.github/workflows/generate-doc-files.yml deleted file mode 100644 index f6a9bf648ed15..0000000000000 --- a/.github/workflows/generate-doc-files.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Generate Documentation Prep Files -on: - pull_request: - paths: - - www/apps/** - -jobs: - check_files: - runs-on: ubuntu-latest - permissions: - contents: write # Required to push changes - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 2 # Ensures we can check the diff - ref: ${{ github.event.pull_request.head.ref }} # Checkout PR branch - - - name: Setup Node.js environment - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: "yarn" - - - name: Install Workspace dependencies - working-directory: www - run: yarn install - - - name: Build packages - working-directory: www - run: yarn build:packages - - - name: Run yarn prep in book - working-directory: www/apps/book - run: yarn prep - - - name: Run yarn prep in resources - working-directory: www/apps/resources - run: yarn prep - - - name: Commit and push changes (if any) - env: - GITHUB_TOKEN: ${{ github.token }} - run: | - git config --global user.name "Shahed Nasser" - git config --global user.email "shahednasser@gmail.com" - - if [[ -n $(git status --porcelain www/apps/book/generated www/apps/book/public www/apps/resources/generated) ]]; then - echo "Ran prep and generated files, committing and pushing..." - git add www/apps/book/generated www/apps/book/public www/apps/resources/generated - git commit -m "chore: run yarn prep automatically" - git push origin ${{ github.event.pull_request.head.ref }} - else - echo "No generated files, skipping commit." - fi \ No newline at end of file