File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 4646 echo "Derived branch from ref: $branch"
4747 echo "branch=$branch" >> $GITHUB_OUTPUT
4848 fi
49- - name: Update the technical docs link in nav.adoc
50- id: update-docs
51- run: |
52- branch="${{ steps.get_branch.outputs.branch }}"
53- # Netlify uses `-` instead of `.` in branch names for constructing the URL
54- slug="${branch//./-}"
55- target="https://${slug}%2D%2Dopenzeppelin-monitor.netlify.app"
56- file="docs/modules/ROOT/nav.adoc"
57- if grep -q "${target}" "${file}"; then
58- echo "nav.adoc is already using ${target}"
59- echo "changed=false" >> $GITHUB_OUTPUT
60- exit 0
61- fi
62- echo "Updating to branch URL: ${target}"
63- sed -i -E "s|(https://)[^/]*openzeppelin-monitor.netlify.app|${target}|g" "${file}"
64- echo "Updated nav.adoc to use ${target}"
65- echo "changed=true" >> $GITHUB_OUTPUT
6649 - name: Create Pull Request to update the technical docs version
6750 if: ${{ steps.get_branch.outputs.branch != '' && steps.update-docs.outputs.changed == 'true' }}
6851 uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
You can’t perform that action at this time.
0 commit comments