Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios wiki is unclear on shortcut instructions #42

Open
ianepreston opened this issue Aug 9, 2024 · 0 comments
Open

ios wiki is unclear on shortcut instructions #42

ianepreston opened this issue Aug 9, 2024 · 0 comments

Comments

@ianepreston
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant