Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

feat: pipeline-based task implementation (#79) #307

feat: pipeline-based task implementation (#79)

feat: pipeline-based task implementation (#79) #307

name: Update Submodule
on:
push:
branches:
- main
workflow_dispatch:
jobs:
update-main-submodule:
runs-on: ubuntu-latest
steps:
- name: Checkout CE repository
uses: actions/checkout@v3
with:
repository: PCL-Community/PCL2-CE
token: ${{ secrets.UPDATE_PAT_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
with:
gpg_private_key: ${{ secrets.UPDATE_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.UPDATE_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Update submodule
run: |
git config user.name "PCL-Community-Bot"
git config user.email "167983016+PCL-Community-Bot@users.noreply.github.com"
git submodule update --init PCL.Core
cd PCL.Core
git fetch origin
LATEST_COMMIT=$(git rev-parse origin/main)
CURRENT_COMMIT=$(git rev-parse HEAD)
if [ "$LATEST_COMMIT" != "$CURRENT_COMMIT" ]; then
git checkout $LATEST_COMMIT
cd ..
git add PCL.Core
git commit -S -m "submodule: update to PCL-Community/PCL.Core@${LATEST_COMMIT}"
git push origin dev
else
echo "The submodule is already at the latest commit"
fi