Update #9
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: Update | |
| on: | |
| schedule: | |
| - cron: "0 9 * * 1" # Every Monday at 09:00 UTC | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| cargo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Update dependencies | |
| run: cargo update | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| commit-message: "Updated Cargo dependencies" | |
| branch: auto/update-cargo | |
| title: "Updated Cargo dependencies" | |
| body: | | |
| Automated weekly update of Cargo dependencies. | |
| Please review the changes to `Cargo.lock` before merging. | |
| delete-branch: true | |
| assignees: larsewi | |
| protoc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Get latest protoc version | |
| id: latest | |
| run: | | |
| LATEST=$(curl -s https://api.github.com/repos/protocolbuffers/protobuf/releases/latest \ | |
| | jq -r '.tag_name' \ | |
| | sed 's/^v//') | |
| echo "version=${LATEST}" >> "$GITHUB_OUTPUT" | |
| - name: Update .protoc-version | |
| run: echo "${{ steps.latest.outputs.version }}" > .protoc-version | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| commit-message: "Updated protoc to ${{ steps.latest.outputs.version }}" | |
| branch: auto/update-protoc | |
| title: "Updated protoc to ${{ steps.latest.outputs.version }}" | |
| body: | | |
| Automated weekly update of the protobuf compiler. | |
| Please review the version bump before merging. | |
| delete-branch: true | |
| assignees: larsewi |