This Golang program just create History for getpocket links.
Work example: juev/links
- Create an application on the page getpocket.com/developer/apps. Here you will get the
consumer_key
. - Creating a token on the page Authenticate Pocket 30.
These values must be stored in the environment variables:
CONSUMER_KEY
to store the consumer_keyACCESS_TOKEN
to store the access_tokenUSERNAME
for storing username in LICENSE information. Default value: "juev"
name: Cronjob operations
on:
schedule:
- cron: "*/15 * * * *" # Runs every 15 minutes
workflow_dispatch:
jobs:
fetch:
runs-on: ubuntu-latest
container: ghcr.io/juev/getpocket-collector:latest
steps:
-
uses: actions/checkout@v3
with:
fetch-depth: 1
-
name: 🚀 Run Automation
run: getpocket-collector
env:
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY}}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
USERNAME: "juev"
-
name: 🐳 Commit
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'update'