Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olithissen/pocket-retrieve-action
A Github action to retrieve articles via the getpocket.com API
https://github.com/olithissen/pocket-retrieve-action
Last synced: 3 days ago
JSON representation
A Github action to retrieve articles via the getpocket.com API
- Host: GitHub
- URL: https://github.com/olithissen/pocket-retrieve-action
- Owner: olithissen
- License: mit
- Created: 2021-08-20T11:27:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-26T19:57:18.000Z (about 3 years ago)
- Last Synced: 2024-10-19T07:51:11.354Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pocket-retrieve-action
A GitHub action to retrieve articles via the [Pocket API](https://getpocket.com/developer/)
This action requires a consumer key and an access token.
You can get a **consumer key** by [registering a new application](https://getpocket.com/developer/apps/new).
The **access token** can be obtained by following the [documented auth flow](https://getpocket.com/developer/docs/authentication) or using a 3rd party app like [mheap/pocket-auth-cli](https://github.com/mheap/pocket-auth-cli).As always it is highly recommended to store them as secrets.
## Inputs
## `consumerKey`
**Required** The consumer key from Pockets developer portal.
## `accessToken`
**Required** The access token retrieved upon authorization.
## `fileName`
The output filename for the retrieved articles.
Default: `'articles.json'`
## Example usage```yaml
uses: olithissen/pocket-retrieve-action@v1
with:
consumerKey: ${{ secrets.CONSUMER_KEY }}
accessToken: ${{ secrets.ACCESS_TOKEN }}
fileName: articles.json
```## A word on filtering
If you are familiar with Pocket's API you might notice that this action is missing all the filters like `state`, `tag`, `favorite` and so on.
While some might be added in a future version it felt like clogging up the input section of this action.
It is recommended to add a post-processing step to do filtering, sorting and mapping.