Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] add recent discussions #404

Merged
merged 10 commits into from
Oct 29, 2024
31 changes: 31 additions & 0 deletions .github/workflows/discussion-data-files-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Discussion data files update

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' #runs every day at midnight

jobs:
update:
runs-on: ubuntu-latest
if: github.repository == 'layer5io/docs'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch discussions data for kanvas tag
run: curl https://discuss.layer5.io/tag/kanvas.json -o data/kanvas_discuss.json

- name: Pull changes from remote
run: git pull origin master

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: Discuss bot
commit_user_email: [email protected]
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_options: "--signoff"
commit_message: "latest discussion data files added"
branch: master
Loading
Loading