meshtastic/.github/workflows/update_protobufs.yml
Sacha Weatherstone 2d2c7b739b
Fix CI
2022-03-09 23:39:47 +11:00

27 lines
796 B
YAML

name: "Update protobufs"
on: workflow_dispatch
jobs:
update-protobufs:
environment: Production
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Update Submodule
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Commit update
run: |
git config --global user.name 'github-actions'
git config --global user.email 'bot@noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add protobufs
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"