mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 21:00:08 +06:00
Revert "Trigger doc-builder job after style bot" (#38735)
Revert "Trigger doc-builder job after style bot (#38398)"
This reverts commit 51e0fac29f
.
This commit is contained in:
parent
0bf53e69e2
commit
6b610d89f1
15
.github/workflows/build_pr_documentation.yml
vendored
15
.github/workflows/build_pr_documentation.yml
vendored
@ -2,15 +2,6 @@ name: Build PR Documentation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
pr_number:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
commit_sha:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
@ -18,9 +9,9 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@6e2eb04a2604817c97be03786efa494fe3acae90
|
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
|
||||||
with:
|
with:
|
||||||
commit_sha: ${{ inputs.commit_sha || github.event.pull_request.head.sha }}
|
commit_sha: ${{ github.event.pull_request.head.sha }}
|
||||||
pr_number: ${{ inputs.pr_number || github.event.number }}
|
pr_number: ${{ github.event.number }}
|
||||||
package: transformers
|
package: transformers
|
||||||
languages: en
|
languages: en
|
||||||
|
17
.github/workflows/pr-style-bot.yml
vendored
17
.github/workflows/pr-style-bot.yml
vendored
@ -11,24 +11,9 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
style:
|
style:
|
||||||
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@639ee721e149a281fe726a50a2cc1354b48bc463
|
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
|
||||||
with:
|
with:
|
||||||
python_quality_dependencies: "[quality]"
|
python_quality_dependencies: "[quality]"
|
||||||
style_command_type: "default"
|
style_command_type: "default"
|
||||||
secrets:
|
secrets:
|
||||||
bot_token: ${{ secrets.GITHUB_TOKEN }}
|
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 }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user