From 6b610d89f1c1f9f4bce927c05818ef34f5d5e65b Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 11 Jun 2025 14:56:39 +0200 Subject: [PATCH] Revert "Trigger doc-builder job after style bot" (#38735) Revert "Trigger doc-builder job after style bot (#38398)" This reverts commit 51e0fac29fc3994d49dfbfd1c8d085d29360d393. --- .github/workflows/build_pr_documentation.yml | 15 +++------------ .github/workflows/pr-style-bot.yml | 17 +---------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml index 4ab3f239279..c2f61c45354 100644 --- a/.github/workflows/build_pr_documentation.yml +++ b/.github/workflows/build_pr_documentation.yml @@ -2,15 +2,6 @@ name: Build PR Documentation on: pull_request: - workflow_call: - inputs: - pr_number: - type: string - required: true - commit_sha: - type: string - required: true - concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -18,9 +9,9 @@ concurrency: jobs: build: - uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@6e2eb04a2604817c97be03786efa494fe3acae90 + uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main with: - commit_sha: ${{ inputs.commit_sha || github.event.pull_request.head.sha }} - pr_number: ${{ inputs.pr_number || github.event.number }} + commit_sha: ${{ github.event.pull_request.head.sha }} + pr_number: ${{ github.event.number }} package: transformers languages: en diff --git a/.github/workflows/pr-style-bot.yml b/.github/workflows/pr-style-bot.yml index fdb76d8db3d..9ca716ec50d 100644 --- a/.github/workflows/pr-style-bot.yml +++ b/.github/workflows/pr-style-bot.yml @@ -11,24 +11,9 @@ permissions: jobs: style: - uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@639ee721e149a281fe726a50a2cc1354b48bc463 + uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main with: python_quality_dependencies: "[quality]" style_command_type: "default" secrets: bot_token: ${{ secrets.GITHUB_TOKEN }} - - check-outputs: - runs-on: ubuntu-latest - needs: style - steps: - - run: echo ${{ needs.style.outputs.pr_number }} - - run: echo ${{ needs.style.outputs.new_commit_sha }} - - trigger: - needs: style - if: needs.style.outputs.new_commit_sha != '' - uses: "./.github/workflows/build_pr_documentation.yml" - with: - pr_number: ${{ needs.style.outputs.pr_number }} - commit_sha: ${{ needs.style.outputs.new_commit_sha }}