Skip to content

Update user agents

Update user agents #3

Workflow file for this run

name: Update user agents
on:
schedule:
- cron: '0 0 1 * *'
jobs:
update-user-agents:
if: github.repository == 'streamlink/streamlink'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: python -m pip install requests
- run: python ./script/update-user-agents.py
env:
WHATISMYBROWSER_API_KEY: ${{ secrets.WHATISMYBROWSER_API_KEY }}
- uses: peter-evans/create-pull-request@9e5b2344021c369f621dcb89ffde8fd910dac08c
with:
token: ${{ secrets.STREAMLINKBOT_USERAGENTS_PR }}
add-paths: |
src/streamlink/plugin/api/useragents.py
commit-message: "plugin.api: update useragents"
committer: "streamlinkbot <[email protected]>"
author: "streamlinkbot <[email protected]>"
branch: "automated/plugin/api/useragents"
branch-suffix: timestamp
delete-branch: true
title: "plugin.api: update useragents"
body: "Automated pull request"