Auto Update whatsmeow #202
This file contains hidden or 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: Auto Update whatsmeow | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.21.5' | |
- name: installing proto-gen-go | |
run: | | |
cd goneonize | |
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11.8" | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: "30.2" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: fetch new proto files | |
run: | | |
uv sync --group dev | |
uv run task proto | |
git diff --exit-code || uv run task build proto | |
- uses: astral-sh/ruff-action@v3 | |
with: | |
args: "check --fix" | |
- name: format python style PEP8 standard | |
run: ruff check --fix && ruff format . | |
- name: update golang dependencies | |
run: cd goneonize && go get -u && go mod tidy | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: | | |
Whatsmeow | |
- Update proto files | |
- Update golang depedencies | |
signoff: false | |
branch: whatsmeow_update | |
delete-branch: true | |
title: '[Update] Whatsmeow version' | |
body: | | |
Whatsmeow | |
- Update proto files | |
- Update golang depedencies | |
labels: | | |
proto | |
whatsmeow | |
goneonize | |
automated pr | |
assignees: krypton-byte | |
reviewers: krypton-byte | |
draft: false |