-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (50 loc) · 1.69 KB
/
PRD17.yaml
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
42
43
44
45
46
47
48
49
50
51
52
name: PRD17
on:
push:
branches:
- master
env:
PUBLIC_NAME: MonsterDex
INTERNAL_NAME: DeepDungeonDex
GITHUB_REPOSITORY_OWNER: $GITHUB_REPOSITORY_OWNER
GITHUB_SERVER_URL: $GITHUB_SERVER_URL
GITHUB_REPOSITORY: $GITHUB_REPOSITORY
GITHUB_SHA: $GITHUB_SHA
jobs:
pr:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[PR]') || contains(github.event.head_commit.message, '[TEST]')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Bump version and push tag
id: version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Clean string
id: clean
uses: frabert/replace-string-action@v2.4
with:
pattern: '(\[)|(\][\w\d.\]\(:\/]+\))'
string: ${{ steps.version.outputs.changelog }}
replace-with: ''
flags: 'g'
- name: Setup git user
run: scripts/setup.sh ${{ secrets.PAT }}
- name: Get Dalamud Plugins Repo
run: scripts/dalamudRepo.sh ${{ secrets.PAT }} ${{ github.repository_owner }} ${{ env.PUBLIC_NAME }}
- name: Create Toml
run: scripts/setupToml.sh
env:
MESSAGE: ${{ github.event.head_commit.message }}
CHANGELOG: ${{ toJSON(steps.clean.outputs.replaced) }}
VERSION: ${{ steps.version.outputs.new_version }}
- name: Commit, push, and PR
run: scripts/gitPushPr.sh
env:
VERSION: ${{ steps.version.outputs.new_version }}
MESSAGE: "${{ github.event.head_commit.message }}"
CHANGELOG: "${{ steps.clean.outputs.replaced }}"