How to create a template that outputs a table? #64
-
Is possible to output a table? |
Beta Was this translation helpful? Give feedback.
Answered by
gautamkrishnar
Apr 23, 2021
Replies: 2 comments 2 replies
-
Thanks for asking @omariosouto, yes it is possible via 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/user/4214976"
template: "<tr><td>$title</td><td>$url</td></tr>" Preview: https://github.com/gkr-bot/gkr-bot#latest-stackoveflow-activity-of-gautamkrishnar |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gautamkrishnar
-
Awesome!!! I really love the project. https://github.com/omariosouto/omariosouto I did some experiments and create this table |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for asking @omariosouto, yes it is possible via
template
key. Example:Readme.md:
workflows/stack-oveflow-workflow.yml