diff --git a/.github/workflows/trigger_publish.yml b/.github/workflows/trigger_publish.yml new file mode 100644 index 0000000..f3eafc5 --- /dev/null +++ b/.github/workflows/trigger_publish.yml @@ -0,0 +1,31 @@ +name: Trigger Publish Action + +on: + push: + branches: + - main + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + repository: exasol/kb-flare + ref: main + token: ${{ secrets.EXA_CI_7_TOKEN }} + submodules: true + + - name: Pull & update submodules recursively + run: | + git submodule update --init --recursive + git submodule update --recursive --remote + + - name: Commit + run: | + git config user.email "actions@github.com" + git config user.name "GitHub Actions - update submodules" + git add --all + git commit -m "Update submodules" || echo "No changes to commit" + git push