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 54e985a commit 0a11246
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: |
DATE=$(date '+%Y%m%d-%H%M')
BRANCH_NAME="update-submodules/update-$DATE"
SOURCE_REPO="https://github.com/zetxek/adritian-free-hugo-theme"
# Setup the committers identity.
git config user.email "[email protected]"
git config user.name "GitHub Actions - update theme submodule"
Expand All @@ -38,17 +39,13 @@ jobs:
echo "Creating pull-request..."
PR_TITLE='preview: update theme to `'$LATEST_TAG'`'
PR_TITLE='update theme to `'$LATEST_TAG'`'
echo 'PR title: '$PR_TITLE
PR_BODY="🤖 This automated PR updates the theme submodule to a PR in the source repo: $PR_URL.
PR_BODY="🤖 This automated PR updates the theme submodule: $SOURCE_REPO.
🔗 Triggered by a github action: https://github.com/zetxek/adrianmoreno.info/actions/workflows/update-submodules.yml"
echo "PR body: "$PR_BODY
PR_TITLE='update theme to `'$SOURCE_BRANCH_NAME'`'
DATE=$(date '+%Y%m%d-%H%M')
BRANCH_NAME="update-submodules/update-$DATE"
gh pr create \
-B main \
-H $BRANCH_NAME \
Expand Down

1 comment on commit 0a11246

@vercel
Copy link

@vercel vercel bot commented on 0a11246 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.