Skip to content

eval/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions

Collection of handy GitHub actions.

Subscribe on Polar

Usage

Polar: strip paywall

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

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.
See CLI documentation.
Sponsor me if this action provided value 🙏🏻

Polar: tag posts

Inserts tags and lists articles by tag. Example:

Screenshot 2024-03-06 at 11 10 53

Usage

  1. Tag a post
    Insert <!-- POLAR-TAGS tags="tag1, some other tag" --> in a post.
    NOTE: Make sure to use double quotes even when having one tag.
  2. Create a post listing all tags
    ...insert <!-- POLAR-TAGS-LIST --> and publish.
  3. Run the following job
jobs:
  PolarTags:
    timeout-minutes: 15
    runs-on: ubuntu-22.04
    steps:
      - name: Update tag-snippets
        uses: eval/actions/polar-tags@main
        with:
          org: your-org
        env:
          POLAR_API_TOKEN: ${{ secrets.POLAR_API_TOKEN }}

See also this dogfooding workflow.
See CLI documentation.
Sponsor me if this action provided value 🙏🏻

About

Light, sound áaand action! 🏎️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published