Skip to content

How to create a template that outputs a table? #64

Locked Answered by gautamkrishnar
omariosouto asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for asking @omariosouto, yes it is possible via template key. Example:

Readme.md:

<table>
    <tr><th>Title</th><th>Link</th></tr>
    <!-- STACKOVERFLOW:START -->
    <!-- STACKOVERFLOW:END -->
</table>

workflows/stack-oveflow-workflow.yml

name: Latest stack oveflow activity
on:
  workflow_dispatch:
  schedule:
    - cron:  '0 * * * *'
jobs:
  update-readme-with-blog:
    name: Update this repo's README with latest activity from StackOverflow
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: gautamkrishnar/blog-post-workflow@master
        with:
          comment_tag_name: "STACKOVERFLOW"
          feed_list: "https://stackoverflow.com/feeds/use…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gautamkrishnar
Comment options

You must be logged in to vote
2 replies
@gautamkrishnar
Comment options

@gautamkrishnar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants