Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: add readme modification checks
Signed-off-by: Nan Wang <nan.wang@jina.ai>
  • Loading branch information
nan-wang committed Nov 28, 2022
commit 82f0ee37cc8e4a00ed5f5061f6a5fe82fb615a7d
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ jobs:
if: ${{ success() }}
run: echo "All Done"

publish-docarray-org:
check-readme-modification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -283,9 +283,20 @@ jobs:
files: |
README.md

- name: Check if
- name: Check if README is modified
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: |
echo "README.md is modified"
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
echo "call `Manual Publish DocArray[dot]org`"
touch SUCCESS

- name: Return outputs
run: |
[[ -f SUCCESS ]]

publish-docarray-org:
needs: check-readme-modification
uses: ./.github/workflows/publish-docarry-org.yml@ci-add-readme-syncup-1128
with:
release_token: ${{ secrets.DOCARRAY_RELEASE_TOKEN }}