generated from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (30 loc) · 1.14 KB
/
discussions-data-files-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 == 'meshery/meshery'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Fetch data for mesheryctl tag
run: curl https://discuss.layer5.io/tag/mesheryctl.json -o docs/_data/discuss/mesheryctl.json
- name: Fetch data for meshery tag
run: curl https://discuss.layer5.io/tag/meshery.json -o docs/_data/discuss/meshery.json
- name: Pull changes from remote
run: git pull origin master
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: docs/_data/discuss/*.json
commit_user_name: Discussions 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