Skip to content

Commit 011e44e

Browse files
committed
dummy change
1 parent c22f7da commit 011e44e

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/check-restricted-files.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ name: check-restricted-files
88
on:
99
pull_request:
1010
paths:
11-
- 'schemas/**/*.yaml'
12-
- 'versions/*.md'
11+
- "versions/*.md"
1312

1413
jobs:
1514
check-files:
@@ -20,16 +19,17 @@ jobs:
2019
run: |
2120
if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/OpenAPI-Specification" ]] && \
2221
[[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/OpenAPI-Specification" ]]; then
23-
24-
if [[ "${{ github.event.pull_request.head.ref }}" == "main" ]] && \
22+
23+
if [[ "${{ github.event.pull_request.head.ref }}" == "dev-sync-with-main" ]] && \
2524
[[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then
26-
echo Sync from main to dev
25+
echo Sync from main to dev via ${{ github.event.pull_request.head.ref }}
2726
exit 0
2827
fi
2928
30-
if [[ "${{ github.event.pull_request.head.ref }}" == "dev" ]] && \
31-
[[ "${{ github.event.pull_request.base.ref }}" =~ ^v[0-9]+\.[0-9]+-dev$ ]]; then
32-
echo Sync from dev to ${{ github.event.pull_request.base.ref }}
29+
if [[ "${{ github.event.pull_request.head.ref }}" =~ ^v[0-9]+\.[0-9]+-dev-sync-with-dev$ ]] && \
30+
[[ "${{ github.event.pull_request.base.ref }}" =~ ^v[0-9]+\.[0-9]+-dev$ ]] && \
31+
[[ ${{ github.event.pull_request.head.ref }} == ${{ github.event.pull_request.base.sha }}* ]]; then
32+
echo Sync from dev to ${{ github.event.pull_request.base.ref }} via ${{ github.event.pull_request.head.ref }}
3333
exit 0
3434
fi
3535
@@ -41,4 +41,10 @@ jobs:
4141
fi
4242
4343
echo This PR contains changes to files that should not be changed
44+
echo
45+
git diff --compact-summary upstream/v3.2-dev upstream/v3.2-dev-sync-with-dev -- versions
46+
47+
echo ${{ github.event.pull_request.head.label }}
48+
echo ${{ github.event.pull_request.base.label }}
49+
4450
exit 1

versions/3.2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenAPI Specification
22

3-
## Version 3.2.0
3+
## Version 3.2.0-draft
44

55
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [BCP 14](https://tools.ietf.org/html/bcp14) [RFC2119](https://tools.ietf.org/html/rfc2119) [RFC8174](https://tools.ietf.org/html/rfc8174) when, and only when, they appear in all capitals, as shown here.
66

0 commit comments

Comments
 (0)