-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1.05 KB
/
changie.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
42
name: changie
on:
push:
branches: ["main"]
jobs:
generate-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Batch changes
uses: miniscruff/changie-action@v2
with:
version: latest
args: batch auto
- name: Merge changes
uses: miniscruff/changie-action@v2
with:
version: latest
args: merge
- name: Get the latest version
id: latest
uses: miniscruff/changie-action@v2
with:
version: latest
args: latest
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Release ${{ steps.latest.outputs.output }}
branch: release/${{ steps.latest.outputs.output }}
body-path: .changes/${{ steps.latest.outputs.output }}.md
commit-message: Release ${{ steps.latest.outputs.output }}
token: ${{ env.TOKEN }}
env:
TOKEN: ${{ secrets.TEAM_GRAPHQL_PERSONAL_ACCESS_TOKEN }}