Skip to content

Commit fd3ac0c

Browse files
fix (build): fetch next branch so pushing is possible, trigger by workflow_dispatch
1 parent 58de341 commit fd3ac0c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/create-schema.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Create Schema for latest release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
jobs:
89
determine_whether_to_run:
@@ -14,15 +15,18 @@ jobs:
1415
- name: Check if event should be sent
1516
id: check-update-schema
1617
run: (echo "${{ github.ref }}" | grep -Eq '^refs\/tags\/[0-9]+\.[0-9]+\.[0-9]+$') && echo "::set-output name=run_jobs::true" || echo "::set-output name=run_jobs::false"
18+
1719
create_schema:
1820
runs-on: ubuntu-latest
1921
needs: determine_whether_to_run
2022
if: needs.determine_whether_to_run.outputs.update_schema == 'true'
2123
name: Create Schema
2224

2325
steps:
24-
- name: Checkout noss Repo
26+
- name: Checkout oss Repo
2527
uses: actions/checkout@v3
28+
with:
29+
ref: next
2630

2731
- name: Make clean and build
2832
run: make clean && make
@@ -36,4 +40,4 @@ jobs:
3640
add: schema
3741
default_author: github_actions
3842
message: Update schema for latest release
39-
push: true
43+
push: true

0 commit comments

Comments
 (0)