Skip to content

Update OBS websocket protocol version #61

Update OBS websocket protocol version

Update OBS websocket protocol version #61

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: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.CATHY_CLOUD_APP_ID }}
private_key: ${{ secrets.CATHY_CLOUD_APP_PRIVATE_KEY }}
- uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- name: update version
id: update-version
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
./script/bump-protocol-version.sh
./script/update-readme-snippets.sh
- name: create pr
id: create-pr
if: steps.update-version.outcome == 'success'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
title: ${{ steps.update-version.outputs.message }}
commit-message: ${{ steps.update-version.outputs.message }}
branch: ${{ steps.update-version.outputs.bump }}/bump-protocol-version
delete-branch: true
labels: |
${{ steps.update-version.outputs.bump }}
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.
- uses: release-drafter/release-drafter@v5
if: steps.create-pr.outcome == 'success'
with:
config-name: release-drafter.yml
disable-autolabeler: true
header: >
This release was automatically published because we found a new v5 tag in [obsproject/obs-websocket](https://github.com/obsproject/obs-websocket).
It may or may not actually contain any actual code changes.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}