An open API service indexing awesome lists of open source software.

https://github.com/eval/actions

Light, sound áaand action! 🏎️
https://github.com/eval/actions

github-actions polar

Last synced: 11 months ago
JSON representation

Light, sound áaand action! 🏎️

Awesome Lists containing this project

README

          

# actions

Collection of handy GitHub actions.


Subscribe on Polar

## Usage

### [Polar](https://polar.sh/): strip paywall

When publishing articles with paywalled snippets (as benefit for paying subscribers), this action will remove them after X days since publication.

``` yaml
jobs:
PolarStripPaywalls:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- name: StripIt
uses: eval/actions/polar-strip-paywall@main
with:
org: your-org
days-since-publish: 7
env:
POLAR_API_TOKEN: ${{ secrets.POLAR_API_TOKEN }}
```

See also this [dogfooding workflow](https://github.com/eval/actions/blob/main/.github/workflows/polar-strip-paywall.yml).
See [CLI documentation](./polar-strip-paywall/README.md).
[Sponsor me](https://polar.sh/eval/subscriptions) if this action provided value 🙏🏻

### [Polar](https://polar.sh/): tag posts

Inserts tags and lists articles by tag. [Example](https://polar.sh/eval/posts/articles-by-tag):

![Screenshot 2024-03-06 at 11 10 53](https://github.com/eval/actions/assets/290596/7e7edd33-e332-4c79-8ed9-00fa8aed25e8)

#### Usage

1. Tag a post
Insert `` in a post.
**NOTE**: Make sure to use double quotes even when having one tag.
1. Create a post listing all tags
...insert `` and publish.
1. Run the following job

``` yaml
jobs:
PolarTags:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- name: Update tag-snippets
uses: eval/actions/polar-tags@main
with:
org-slug: your-org
org-id: the-polar-uuid
env:
POLAR_API_TOKEN: ${{ secrets.POLAR_API_TOKEN }}
```

See also this [dogfooding workflow](https://github.com/eval/actions/blob/main/.github/workflows/polar-tags.yml).
See [CLI documentation](./polar-tags/README.md).
[Sponsor me](https://polar.sh/eval/subscriptions) if this action provided value 🙏🏻