Skip to content

Commit

Permalink
Remove demo from README
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Sep 4, 2024
1 parent 834d083 commit c3d0486
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Sync Polar ads
uses: polarsource/actions/ads@main
with:
path: "**/*.md"
path: ads/demo.md
token: ${{ steps.polar.outputs.token }}

- uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,3 @@ jobs:
with:
commit_message: Update Polar ads
```

### Demo

<!-- POLAR type=ads benefit_id=c43080e5-c99f-43d2-b72c-e25ac374dd2b width=100 height=100 -->
2 changes: 2 additions & 0 deletions ads/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


def sync_file(file: io.TextIOWrapper, client: Polar) -> None:
print("Syncing file: ", file.name)
contents = file.read()

if "<!-- POLAR" not in contents:
Expand Down Expand Up @@ -154,6 +155,7 @@ def parse_comment(comment: str) -> dict[str, str]:
help="Paths to the files to synchronize",
)


env_token = os.environ.get("POLAR_API_TOKEN")
parser.add_argument(
"--token",
Expand Down

0 comments on commit c3d0486

Please sign in to comment.