-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.5 KB
/
wiki.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
35
36
37
38
39
40
41
# Create Release Notes on the GitHub Project WIKI pages
# Some words on how to create and use GH_PAT:
# 1. Create a new Personal Access Token (PAT) in your 'personal' account
# - Make sure the PAT has an expiration date (very important)!
# - Give it repo rights
# 2. Create a secret in your project called GH_PAT and paste the PAT of 1 into it.
# 3. Now you can use secrets.GH_PAT variable as shown below.
#
on:
milestone:
types: [closed]
name: Milestone Closure
jobs:
release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: To avoid fatal could not read Username
run: |
git config --global user.email "[email protected]"
git config --global user.name "gdha"
git config --global url.https://${{ secrets.GH_PAT }}@github.com/.insteadOf https://github.com/
env:
GH_PAT: ${{ secrets.GH_PAT }}
- name: Create Release Notes
uses: docker://decathlon/release-notes-generator-action:3.1.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT_FOLDER: temp_release_notes
USE_MILESTONE_TITLE: "true"
FILENAME_PREFIX: Release-Notes-
- name: Upload Release Notes to Wiki
uses: docker://decathlon/wiki-page-creator-action:latest
env:
ACTION_MAIL: [email protected]
ACTION_NAME: gdha
GH_PAT: ${{ secrets.GH_PAT }}
MD_FOLDER: temp_release_notes
OWNER: gdha
REPO_NAME: upgrade-ux
SKIP_MD: README.md