Skip to content

Commit

Permalink
Update document_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlere committed Apr 25, 2024
1 parent 348ff82 commit 8491ff6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/document_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10" # install the python version needed
- name: Document CLI and write to folder
run: |
git checkout ${{ steps.extract_branch.outputs.branch }}
make deps-install
mkdir -p docs
poetry run typer postprocessing_variant_calls.main utils docs > docs/cli.md
Expand All @@ -27,17 +34,10 @@ jobs:
default_author: github_actions
message: "add doc for cli"
add: '["docs/*.md --force"]'
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v4
with:
ref: docs
fetch-depth: 0
- name: Write Docs
id: write_docs
run: |
git checkout docs
git checkout ${{ steps.extract_branch.outputs.branch }} README.md
- uses: EndBug/add-and-commit@v9
with:
Expand Down

0 comments on commit 8491ff6

Please sign in to comment.