-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (36 loc) · 1.05 KB
/
gitmoji-changelog.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
name: 😜 Gitmoji Changelog
on:
push:
tags:
- '**'
jobs:
changelog:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history for changelog
-
name: "😜 Gitmoji Changelog"
run: |
npm install -g gitmoji-changelog
gitmoji-changelog --preset generic
-
uses: EndBug/add-and-commit@7f650514d761cfbf4479f4cbb5b1ff5ea6e77fe8
name: "Commit Changelog"
with:
default_author: github_actions
message: '📝 Update Changelog'
new_branch: changelog-update-${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Create Pull Request
uses: devops-infra/action-pull-request@f1ba84bbd34181cb26b0c66d60fa39543be0d1c7
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: changelog-update-${{ github.run_id }}
target_branch: main
title: 😜 Gitmoji Changelog
body: "**Automated pull request**"