forked from konflux-ci/build-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 992 Bytes
/
Copy pathversioning.yaml
File metadata and controls
32 lines (28 loc) · 992 Bytes
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
# yamllint disable-file
# <TEMPLATED FILE!>
# This file comes from the templates at https://github.com/konflux-ci/task-repo-shared-ci.
# Please consider sending a PR upstream instead of editing the file directly.
# See the SHARED-CI.md document in this repo for more details.
name: Check versioning
'on':
pull_request:
branches: [main]
jobs:
check:
name: Check versioning
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Check versioning
env:
BASE_REF: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
run: |
#!/bin/bash
set -euo pipefail
if ! hack/versioning.py check --base-ref "$BASE_REF"; then
echo "To see the errors/warnings inline, go to the 'Files changed' view or the 'Commits' view."
exit 1
fi