Update Transgender_Subjectivity_and_the_Logic_of_Sexual_Difference.md #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Hugo theme submodule | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write # enable write permission for the workflow | |
jobs: | |
update-submodule: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Update Hugo theme submodule | |
run: | | |
git submodule update --remote --merge | |
- name: Commit submodule updates if there are changes | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add themes/book | |
# Only commit if there are changes | |
if ! git diff --cached --quiet; then | |
git commit -m "CI: Update Hugo theme submodule to latest" | |
git push origin main | |
else | |
echo "No changes to commit" | |
fi |