Do Add the below Script while Creating a Workflow to enable Obsidian Grab
name: CI
on:
workflow_dispatch: inputs: data: description: 'Content that needs to be added to your obsidian' required: true default: 'Test Content'
jobs:
add_content: # The type of runner that the job will run on runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: Add data and commit # transfer the new html files back into the repository
run: |
echo "- ${{ github.event.inputs.data }}" >> "Quick Capture.md"
git config --local user.name "Obsidian Chrome Extension"
git add .
git commit -m "Adding data from the extension"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true