Skip to content

Commit a878372

Browse files
authored
fix: Update rust docs workflow (#420)
1 parent 9ace8f2 commit a878372

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.github/workflows/rust-docs-url.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,6 @@ jobs:
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

0 commit comments

Comments
 (0)