Skip to content

Replaced img src's w/ short URLs β†ž [auto-sync from adamlui/ai-apps] #14

Replaced img src's w/ short URLs β†ž [auto-sync from adamlui/ai-apps]

Replaced img src's w/ short URLs β†ž [auto-sync from adamlui/ai-apps] #14

Workflow file for this run

name: Sync * to adamlui/ai-apps/perplexity-omnibox/*
on:
push:
branches: [main]
paths: ["**", "!.*", "!package*json", "!eslint.config*"]
jobs:
build:
if: (github.repository == 'adamlui/perplexity-omnibox') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
runs-on: ubuntu-latest
env:
TZ: PST8PDT
steps:
- name: Checkout adamlui/perplexity-omnibox
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SYNC_PAT }}
repository: adamlui/perplexity-omnibox
path: adamlui/perplexity-omnibox
- name: Checkout adamlui/ai-apps
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SYNC_PAT }}
repository: adamlui/ai-apps
path: adamlui/ai-apps
- name: Sync * to adamlui/ai-apps/perplexity-omnibox/*
run: |
rsync -avhr --delete --exclude={'.*','eslint*','package*json'} \
${{ github.workspace }}/adamlui/perplexity-omnibox/ \
${{ github.workspace }}/adamlui/ai-apps/perplexity-omnibox/
- name: Escape backticks in commit msg
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
run: |
echo "ESCAPED_MSG<<EOF" >> $GITHUB_ENV
echo "$COMMIT_MSG" | sed 's/`/\`/g' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Config committer
run: |
gpg --batch --import <(echo "${{ secrets.GPG_PRIVATE_KEY }}")
git config --global commit.gpgsign true
git config --global user.name "kudo-sync-bot"
git config --global user.email "auto-sync@kudoai.com"
git config --global user.signingkey "${{ secrets.GPG_PRIVATE_ID }}"
- name: Push changes to adamlui/perplexity-omnibox
run: |
cd ${{ github.workspace }}/adamlui/perplexity-omnibox
git add .
git commit -n -m "$ESCAPED_MSG β†ž [auto-sync from \`adamlui/perplexity-omnibox\`]" || true
git push
- name: Push changes to adamlui/ai-apps
run: |
cd ${{ github.workspace }}/adamlui/ai-apps
git add .
git commit -n -m "$ESCAPED_MSG β†ž [auto-sync from \`adamlui/perplexity-omnibox\`]" || true
git push