Come back to figuring out why syndication is broken

This commit is contained in:
JP Hastings-Spital 2024-01-19 17:43:43 +00:00
parent 740332509d
commit 87a22651d5

View file

@ -62,26 +62,26 @@ jobs:
--cacheDir /tmp/hugo/cache \ --cacheDir /tmp/hugo/cache \
--minify \ --minify \
--baseURL "https://www.byjp.me" --baseURL "https://www.byjp.me"
- name: Syndicate # - name: Syndicate
env: # env:
INSTAGRAM_PASSWORD: ${{ secrets.INSTAGRAM_PASSWORD }} # INSTAGRAM_PASSWORD: ${{ secrets.INSTAGRAM_PASSWORD }}
INSTAGRAM_TOTP: ${{ secrets.INSTAGRAM_TOTP }} # INSTAGRAM_TOTP: ${{ secrets.INSTAGRAM_TOTP }}
PIXELFED_ACCESS_TOKEN: ${{ secrets.PIXELFED_ACCESS_TOKEN }} # PIXELFED_ACCESS_TOKEN: ${{ secrets.PIXELFED_ACCESS_TOKEN }}
run: | # run: |
cd tools/syndicate # cd tools/syndicate
go mod download # go mod download
go run . # go run .
if git diff-index --quiet HEAD; then # if git diff-index --quiet HEAD; then
echo "No syndication changes made" # echo "No syndication changes made"
else # else
echo "Committing syndication changes" # echo "Committing syndication changes"
git config --global user.email "github-actions[bot]@users.noreply.github.com" # git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "Syndicate[bot]" # git config --global user.name "Syndicate[bot]"
git commit -am "Syndicated post references" # git commit -am "Syndicated post references"
git push # git push
# TODO: Do not upload, but without failing the build # # TODO: Do not upload, but without failing the build
exit 1 # exit 1
fi # fi
- name: Build search index - name: Build search index
run: | run: |
# Build the search index # Build the search index