Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -25,30 +25,6 @@ jobs:
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"

- name: Update Poetry version in pyproject.toml
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
poetry version "${{ steps.cz.outputs.version }}"
git add pyproject.toml
git commit -m "Update pyproject.toml to version ${{ steps.cz.outputs.version }}"
git push

- name: Update poetry.lock
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
poetry lock
git add poetry.lock
git commit -m "Update poetry.lock for version ${{ steps.cz.outputs.version }}"
git push


release:
name: Release
needs: version
Expand Down
2 changes: 1 addition & 1 deletion pydoll/browser/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def get_pdf_base64(self):
str: The PDF data of the page.
"""
response = await self._execute_command(PageCommands.print_to_pdf())
return response['result']['data'].encode('utf-8')
return response['result']['data']

async def print_to_pdf(self, path: str):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydoll"
version = "0.2.0"
version = "0.3.1"
description = ""
authors = ["Thalison Fernandes <thalissfernandes99@gmail.com>"]
readme = "README.md"
Expand Down