2021-04-19 23:52:10 -07:00
|
|
|
name: "Update protobufs"
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-protobufs:
|
|
|
|
environment: Production
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
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'
|
2021-04-20 02:12:39 -07:00
|
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
2021-04-25 17:09:59 -07:00
|
|
|
git add protobufs
|
2021-04-20 01:44:44 -07:00
|
|
|
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"
|