Files
desktop/.github/workflows/update-submodules.yml

39 lines
1.1 KiB
YAML

name: Update Components Submodules
on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:
workflow_call: # This is a custom event that we will trigger manually
jobs:
update-submodules:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
token: ${{ secrets.DEPLOY_KEY }}
- name: Update submodules
run: |
# Only update the "components" submodule, we want to ignore l10n
submodule_path="$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | grep zen-components --color=never)"
echo "Submodule path: $submodule_path"
cd $submodule_path
git checkout main
git pull
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[skip ci] 📦 Update Submodules!"
commit_user_name: Zen Browser Robot
commit_user_email: zen-browser-bot@users.noreply.github.com