diff --git a/.github/workflows/nightly-protos.yml b/.github/workflows/nightly-protos.yml new file mode 100644 index 000000000..58b8de22c --- /dev/null +++ b/.github/workflows/nightly-protos.yml @@ -0,0 +1,35 @@ +name: Nightly Automation +on: + schedule: + - cron: '0 10 * * 1' + workflow_dispatch: +jobs: + nightly-protos: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1.40.1 + - name: Update rust toolchains + run: rustup update + - name: Cache + uses: Swatinem/rust-cache@v2 + with: + workspaces: | + . + - name: Generate Protos + run: dev/gen_protos.sh + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + commit-message: Nightly Protos + title: Update Protos + body: | + - Nightly Proto Update + + Auto-generated by [create-pull-request][1] + + [1]: https://github.com/peter-evans/create-pull-request + branch: nightly-proto \ No newline at end of file