Update OBS websocket protocol version #9
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: Update OBS websocket protocol version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
update: | |
name: update protocol version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: magnetikonline/action-golang-cache@v4 | |
with: | |
go-version-file: go.mod | |
- name: update version | |
id: update | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
./script/bump-protocol-version.sh | |
version=$(grep obs_websocket_protocol_version version.go | tr -dc '0-9.') | |
message="Bump OBS websocket protocol to $version" | |
echo "message=$message" >>$GITHUB_OUTPUT | |
- name: create pr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: ${{ steps.update.outputs.message }} | |
commit-message: ${{ steps.update.outputs.message }} | |
branch: feature/bump-protocol-version | |
delete-branch: true | |
labels: | | |
feature | |
reviewers: | | |
andreykaipov | |
body: | | |
There was a new v5 tag in [obsproject/obs-websocket](https://github.com/obsproject/obs-websocket). | |
This PR may or may not contain any actual changes to the generated code. |