diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml index 5f14a7af..030fbd08 100644 --- a/.github/workflows/update-submodules.yml +++ b/.github/workflows/update-submodules.yml @@ -13,12 +13,6 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - - name: Pull & update submodules recursively - run: | - git submodule update --init --recursive - git submodule update --recursive --remote - - name: Commit, push changes & open PR run: | DATE=$(date '+%Y%m%d-%H%M') @@ -36,12 +30,13 @@ jobs: git push origin $BRANCH_NAME LATEST_TAG=$(git --git-dir=themes/adritian-free-hugo-theme/.git describe --tags --always) - + LAST_COMMIT=$(git submodule status | awk '{print $1}') echo "Creating pull-request..." PR_TITLE='update theme to `'$LATEST_TAG'`' echo 'PR title: '$PR_TITLE PR_BODY="🤖 This automated PR updates the theme submodule: $SOURCE_REPO. + 👉 Last commit: `$LAST_COMMIT` 🔗 Triggered by a github action: https://github.com/zetxek/adrianmoreno.info/actions/workflows/update-submodules.yml" echo "PR body: "$PR_BODY