Skip to content

Commit 77ae202

Browse files
authored
Merge pull request #404 from vishalvivekm/related-discussion
[action] add recent discussions
2 parents c5e6f50 + f477a60 commit 77ae202

File tree

5 files changed

+1462
-1
lines changed

5 files changed

+1462
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Discussion data files update
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *' #runs every day at midnight
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
if: github.repository == 'layer5io/docs'
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Fetch discussions data for kanvas tag
18+
run: curl https://discuss.layer5.io/tag/kanvas.json -o data/kanvas_discuss.json
19+
20+
- name: Pull changes from remote
21+
run: git pull origin master
22+
23+
- name: Commit changes
24+
uses: stefanzweifel/git-auto-commit-action@v5
25+
with:
26+
commit_user_name: Discuss bot
27+
commit_user_email: [email protected]
28+
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
29+
commit_options: "--signoff"
30+
commit_message: "latest discussion data files added"
31+
branch: master

0 commit comments

Comments
 (0)