Skip to content

Commit acc2d96

Browse files
mergify[bot]v1v
andauthored
action: validate changelog fragment (#1488) (#1512)
(cherry picked from commit 259682d) Co-authored-by: Victor Martinez <[email protected]>
1 parent 106f849 commit acc2d96

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/changelog.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Changelog
2+
on: [pull_request]
3+
4+
jobs:
5+
fragments:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Fetch Go version from .go-version
10+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: ${{ env.GO_VERSION }}
14+
- name: check pr-has-fragment
15+
run: |
16+
GOBIN=$PWD/bin go install github.com/elastic/elastic-agent-changelog-tool@latest
17+
./bin/elastic-agent-changelog-tool pr-has-fragment --repo ${{ github.event.repository.name }} ${{github.event.number}}

0 commit comments

Comments
 (0)