-
Notifications
You must be signed in to change notification settings - Fork 25
43 lines (35 loc) · 1.27 KB
/
pre-release.yml
File metadata and controls
43 lines (35 loc) · 1.27 KB
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
name: Pre-Release
on:
pull_request:
paths:
- '.github/project.yml'
jobs:
release:
runs-on: ubuntu-latest
name: pre release
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Ensure upgrade YAMLs changed
run: |
CHANGED=$(git diff --name-only \
${{ github.event.pull_request.base.sha }} \
${{ github.event.pull_request.head.sha }} \
| grep -E "systemtests/src/test/resources/upgrade/(YamlUpgrade.yaml|OlmUpgrade.yaml)" || true)
if [ -z "$CHANGED" ]; then
echo "❌[ERROR]: Neither YamlUpgrade.yaml nor OlmUpgrade.yaml was modified in this PR, exiting the flow."
exit 1
fi
echo "✔️ Upgrade YAML change detected: $CHANGED"
- name: Retrieve Project Metadata
uses: radcortez/project-metadata-action@874c89bea2ee8282008328c3418eec4d219013f3
id: metadata
with:
metadata-file-path: '.github/project.yml'
- name: Review Milestone
uses: radcortez/milestone-review-action@e0f8f2498c85fa915c1181ff93e5c16a810506ef
with:
github-token: ${{secrets.GITHUB_TOKEN}}
milestone-title: ${{steps.metadata.outputs.current-version}}