Skip to content

Commit

Permalink
Update update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zetxek authored Aug 26, 2024
1 parent 0a11246 commit 1a7812f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
Expand Down

1 comment on commit 1a7812f

@vercel
Copy link

@vercel vercel bot commented on 1a7812f Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.