Skip to content

Commit 732c43d

Browse files
test
1 parent ffac140 commit 732c43d

File tree

1 file changed

+1
-39
lines changed

1 file changed

+1
-39
lines changed

.github/workflows/api_changes_check.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ permissions: read-all
33

44
on:
55
pull_request:
6-
branches:
7-
- develop
86

97
env:
108
API_DOC_HTML_ROOT_RELATIVE_PATH: autoapi
@@ -14,54 +12,18 @@ concurrency:
1412
cancel-in-progress: true
1513

1614
jobs:
17-
call-build-api-doc:
18-
uses: ./.github/workflows/build_html_doc.yml
19-
with:
20-
ref: "refs/pull/${{ github.event.number }}/merge"
15+
2116
compare-api-doc-with-develop:
2217
timeout-minutes: 30
23-
needs: call-build-api-doc
2418
runs-on: ubuntu-latest
2519
permissions:
2620
issues: write
2721
steps:
28-
- name: Download built HTML doc as artifact from previous step
29-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
30-
with:
31-
name: html_doc_artifact
32-
- run: |
33-
tar -xvf artifact.tar
34-
rm artifact.tar
35-
shell: 'bash'
36-
- name: Checkout latest doc_pages branch tip
37-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38-
with:
39-
ref: doc_pages
40-
path: previous_doc_state
41-
- name: Get changed file names in API doc path
42-
id: diff
43-
run: |
44-
cd html_build/html/$API_DOC_HTML_ROOT_RELATIVE_PATH
45-
CHANGED_FILES=$(find . -name "*.html" -exec diff -qrBZ {} $GITHUB_WORKSPACE/previous_doc_state/$API_DOC_HTML_ROOT_RELATIVE_PATH/{} \;)
46-
echo ${CHANGED_FILES}
47-
CHANGED_FILES=$(echo $CHANGED_FILES | tr '\n' ' ')
48-
echo "changed_files=${CHANGED_FILES}" >> $GITHUB_OUTPUT
4922

5023
- name: Add label
51-
if: ${{ contains(steps.diff.outputs.changed_files, 'differ') }}
5224
run: |
5325
echo '{"pr_number": "${{ github.event.pull_request.number }}", "action": "add"}' > api_status.json
5426
55-
- name: Remove label
56-
if: ${{ !(contains(steps.diff.outputs.changed_files, 'differ')) && contains(github.event.pull_request.labels.*.name, 'API') }}
57-
run: |
58-
echo '{"pr_number": "${{ github.event.pull_request.number }}", "action": "remove"}' > api_status.json
59-
60-
- name: No change label
61-
if: ${{ !(contains(steps.diff.outputs.changed_files, 'differ')) && !contains(github.event.pull_request.labels.*.name, 'API') }}
62-
run: |
63-
echo '{"pr_number": "${{ github.event.pull_request.number }}", "action": "none"}' > api_status.json
64-
6527
- name: Upload artifact
6628
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
6729
with:

0 commit comments

Comments
 (0)