-
Notifications
You must be signed in to change notification settings - Fork 21
102 lines (92 loc) · 3.61 KB
/
update-extensions-docs.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: update-extensions-docs
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * 6" # runs every saturday at 04:00:00
jobs:
fetch-extensions-docs-from-core-repo:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@v3
- name: Publish Extensions imge assets as artifact
uses: actions/upload-artifact@v3
with:
name: streampipes-extensions-docs-image-assets
path: |
streampipes-extensions/streampipes-extensions-all-jvm/target/docs/img/
retention-days: 5
- name: Delete pipeline element and image directory
run: |
rm -r ./docs/pe
- name: fetch extensions docs from artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow_conclusion: success
name: streampipes-extensions-docs
repo: apache/streampipes
check_artifacts: true
search_artifacts: true
skip_unpack: false
if_no_artifact_found: fail
branch: dev
workflow: extensions-docs.yml
path: ./docs/pe
- name: fetch extensions image assets from artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow_conclusion: success
name: streampipes-extensions-docs-image-assets
repo: apache/streampipes
check_artifacts: true
search_artifacts: true
skip_unpack: false
if_no_artifact_found: fail
branch: dev
workflow: extensions-docs.yml
path: ./website-v2/static/img/pipeline-elements
- name: fetch extensions sidebar.xml from artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow_conclusion: success
name: streampipes-extensions-docs-sidebar
repo: apache/streampipes
check_artifacts: true
search_artifacts: true
skip_unpack: false
if_no_artifact_found: fail
branch: dev
workflow: extensions-docs.yml
path: ./website-v2
- name: create PR to update extensions docs
uses: peter-evans/create-pull-request@v4
with:
commit-message: "chore(extensions-docs): update extensions doc assets to recent development state"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: "chore/update-extensions-docs"
delete-branch: true
title: 'chore(extensions-docs): update extensions doc assets'
body: |
Update extensions doc assets.
Automatically created.
draft: false
base: dev