generated from junxnone/twiki
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 1004 Bytes
/
sync_issues.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
name: sync issues to markdown
on:
issues:
types: [opened, edited, labeled]
jobs:
issue2md:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: print github event action
run: |
echo "${{ github.event.action }}"
- uses: junxnone/wiki_issue2md@main
with:
branch: "main" # default to main
dir: "docs" # default to _posts
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
created_at: ${{ github.event.issue.created_at }}
updated_at: ${{ github.event.issue.updated_at }}
label_name: ${{ join(github.event.issue.labels.*.name, ', ') }}
title: ${{ github.event.issue.title }}
body: ${{ github.event.issue.body }}
number: ${{ github.event.issue.number }}
actor: ${{ github.actor }}
nohead: ${{ contains(github.event.issue.labels.*.name, 'nohead') }}
update_sidebar:
uses: ./.github/workflows/update_sidebar.yml
needs: issue2md