Skip to content

Update Podcastindex Statistics #260

Update Podcastindex Statistics

Update Podcastindex Statistics #260

Workflow file for this run

name: Update Podcastindex Statistics
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '21 21 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '2.7.x'
- uses: BSFishy/pip-action@v1
with:
packages: virtualenv
# Runs a set of commands using the runners shell
- name: Update Translations
shell: bash
env:
API_KEY: ${{ secrets.PODCASTINDEX_API_KEY }}
API_SECRET: ${{ secrets.PODCASTINDEX_API_SECRET }}
run: |
echo Updating stats via Podcastindex API
./update_stats.sh $API_KEY $API_SECRET
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: 'chore(data): update stats'
reviewers: dergigi