Skip to content

Commit

Permalink
Updated docs build gh actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiswl committed Mar 6, 2024
1 parent fd09621 commit 74d64c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build_docs_requirements_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: build_docs_requirements_file

on:
workflow_call:
inputs:
branch:
required: true
type: string

jobs:
build_docs_requirements_file:
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

# Used to host build wheel
- uses: actions/setup-python@v5
Expand All @@ -32,7 +38,7 @@ jobs:
mv requirements.txt docs/requirements.txt
# Commit
- uses: endbug/add-and-commit@v7
- uses: endbug/add-and-commit@v9
with:
add: 'docs/requirements.txt'
default_author: github_actions
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pipeline_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ jobs:
needs:
- setup
uses: ./.github/workflows/build_docs_requirements_file.yml
with:
git_branch: ${{ needs.setup.outputs.branch_name }}

# Build package
build_package_wheels:
Expand Down

0 comments on commit 74d64c7

Please sign in to comment.