1 parent fb20504 commit 05248e2Copy full SHA for 05248e2
1 file changed
.github/workflows/docpublish.yml
@@ -28,6 +28,7 @@ jobs:
28
echo "OUTDIR=$OUTDIR" >> "$GITHUB_ENV"
29
unzip legacy-ncs*.zip -d $OUTDIR
30
find "$OUTDIR" -type l -delete
31
+ echo "what is head: ${{ github.event.workflow_run.head_branch }}"
32
33
- name: Obtain PR number
34
working-directory: docs
@@ -45,14 +46,8 @@ jobs:
45
46
azcopy cp $OUTDIR "${{ vars.NCS_DOC_STORAGE_URL }}?${{ secrets.NCS_DOC_SAS}}" --recursive=true
47
48
- name: Upload Zoomin documentation
49
+ if: ${{ github.event.workflow_run.head_branch == 'main' }}
50
run: |
- for file in docs/monitor*.txt; do
- if ! grep -q main ${file}; then
51
- echo "Not targeting main, skipping Zoomin upload"
52
- exit 0
53
- fi
54
- done
55
-
56
# trust server
57
mkdir -p ~/.ssh
58
ssh-keyscan upload-v1.zoominsoftware.io >> ~/.ssh/known_hosts
0 commit comments