💡User-Agent Update #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 💡User-Agent Update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
- name: Update User-Agents Data | |
env: | |
WHATISMYBROWSER_KEY: ${{ secrets.WHATISMYBROWSER_KEY }} | |
run: | | |
go run . | |
working-directory: cmd/update-useragent | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "Weekly useragent update [$(date)]" | |
title: "Weekly useragent update [$(date)]" | |
body: "This PR updates the useragent data." | |
branch: 'useragent-update' | |
delete-branch: true | |
base: 'main' |