Skip to content

Commit

Permalink
Create preview-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
grodtron authored Feb 1, 2024
1 parent dc374cc commit 1a3a4e3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/preview-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Preview Changes in PR

on:
pull_request:
branches:
- main

jobs:
run_todoist_automation:
name: Run TodoistAutomation CLI
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install TodoistAutomation CLI
run: |
pip install git+https://github.com/grodtron/TodoistAutomation
- name: Run TodoistAutomation CLI
run: |
todoist-sync --dry-run --api-key ${{ secrets.TODOIST_API_KEY }} --yaml-file ./gtd.yml preview --github-token ${{ secrets.GITHUB_TOKEN }} --repo ${{ github.repository }} --pr-number ${{ github.event.pull_request.number }}

0 comments on commit 1a3a4e3

Please sign in to comment.