⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
small fix
daniel31x134bc0476e385e
diff --git a/.github/workflows/locale-action.yml b/.github/workflows/locale-action.ymlindex 2110ac06..35778881 100644--- a/.github/workflows/locale-action.yml+++ b/.github/workflows/locale-action.yml@@ -14,47 +14,33 @@ jobs:runs-on: ubuntu-lateststeps:- - name: Checkout full history of the i18n branch+ - name: Checkout i18n branchuses: actions/checkout@v4with:ref: ${{ github.event.pull_request.head.ref }}fetch-depth: 0- - name: Give up early if the latest commit is already from LinkwardenBot+ - name: Skip if already rewrittenrun: |if [ "$(git show -s --format='%an')" = 'LinkwardenBot' ]; thenecho "Already rewritten – skipping."exit 0fi- - name: Set bot identity in local Git config+ - name: Configure bot identityrun: |git config user.name "LinkwardenBot"git config user.email "[email protected]"- - name: Install git-filter-repo (safer & faster than filter-branch)+ - name: Amend just the PR commits+ env:+ BASE_SHA: ${{ github.event.pull_request.base.sha }}run: |- pip install --quiet git-filter-repo-- - name: Capture origin URL- id: save_remote- run: |- echo "REMOTE_URL=$(git remote get-url origin)" >> $GITHUB_OUTPUT-- - name: Rewrite every commit’s author/committer- run: |- git filter-repo \- --name-callback 'return b"LinkwardenBot"' \- --email-callback 'return b"[email protected]"' \- --commit-callback '- commit.committer_name = b"LinkwardenBot"- commit.committer_email = b"[email protected]"- '-- - name: Restore origin and recreate tracking branch- run: |- git remote add origin "${{ steps.save_remote.outputs.REMOTE_URL }}"- git fetch origin i18n --depth=1 --no-tags+ # Rebase everything *after* the PR’s base commit.+ # --exec runs after each commit is picked, so we can amend in-place.+ git rebase --committer-date-is-author-date \+ --exec 'git commit --amend --no-edit --author="LinkwardenBot <[email protected]>"' \+ "$BASE_SHA"- name: Push rewritten historyrun: git push --force-with-lease origin HEAD:i18n\ No newline at end of file