feat: add blog frontmatter, feature images, and blog notifier workflo… #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Notify Blog Repo | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['blog/**', 'posts/**', 'docs/blog/**'] | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ vars.DISPATCH_APP_ID }} | |
| private-key: ${{ secrets.DISPATCH_APP_KEY }} | |
| owner: Jesssullivan | |
| repositories: jesssullivan.github.io | |
| - name: Trigger blog post collection | |
| run: | | |
| gh api repos/Jesssullivan/jesssullivan.github.io/dispatches \ | |
| -f event_type=blog-content-changed \ | |
| -f 'client_payload[source_repo]=${{ github.repository }}' | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} |