Skip to content

ios wiki is unclear on shortcut instructions #42

@ianepreston

Description

@ianepreston

When I tried to follow it I found I had to create the pull and push repository shortcuts before I could apply them to the automation. Suggest revising that section as follows:

Open Shortcuts > Shortcuts > click the plus sign in the upper right

Search actions > Pull Repository - Repo: your Logseq repo
Name it "pull logseq repo" or something similar
Add a second action:
    Search actions >
        Stage for Commit - Path: *, Repo: your Logseq repo
        If condition
            Input: Select Magic Variable - choose Filenames below the first action
            Condition: has any value
            Put the following two actions Commit Repository and Push Repository under this If condition so that we only make a commit when changes detected therefore we can avoid empty commit
        Commit Repository - Repo: your Logseq repo, Message: Auto-commit from iOS/iPadOS
        NOTE: In Commit Repository, you can toggle off Fail when nothing to Commit if you find the failure notification annoying. Although I prefer to keep it toggle on to prevent empty commit and empty push.
        Push Repository - Repo: your Logseq repo

Open ShortCuts > Automation > Create Personal Automation:
On App Open:
App > choose Logseq > click Next
select the pull action you created
Turn off ask before running (or leave it on up to you)
On App Close:
select the push action you created
Turn off ask before running (or leave it on up to you)
The final workflow should look like:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions