Skip to content

Commit afe1a63

Browse files
authored
Merge pull request #276 from Rendanic/prgithub
github Actions: check antsibull changelog files
2 parents cf3d93f + f422987 commit afe1a63

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: antsibull changelog files
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- 'pr*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
name: Test changed-files
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Get changelog files
21+
id: changelog-files
22+
uses: tj-actions/changed-files@v31
23+
with:
24+
files: |
25+
changelogs/**
26+
- name: List all changed files
27+
run: |
28+
for file in ${{ steps.changelog-files.outputs.all_changed_files }}; do
29+
echo "antsibull changelog file found: $file"
30+
exit 0
31+
done
32+
echo "antsibull changelog files missing!"
33+
exit 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
minor_changes:
3+
- "github Actions: check antsibull changelog files (#276)"

0 commit comments

Comments
 (0)