Skip to content

Commit

Permalink
add replace rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed May 3, 2024
1 parent 2459a2b commit 9c139d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
echo "repo_name: ${{ github.event.repository.name }}" >> docs/assets/data/github.yml
echo "repository: ${{ github.repository }}" >> docs/assets/data/github.yml
- name: Replace URLs to match git repo ✂️
run: |
grep -rl 'https://${{ github.repository_owner }}.github.io/one-click-se-demos/' . --exclude-dir .git | xargs sed -i 's/https:\/\/.*.github.io\/one-click-se-demos/https:\/\/'"${{ github.repository_owner }}"'.github.io\/one-click-se-demos/g'
grep -rl 'https://github.com/.*/one-click-se-demos' . --exclude-dir .git | xargs sed -i 's/https:\/\/github.com\/.*\/one-click-se-demos/https:\/\/github.com\/'"${{ github.repository_owner }}"'\/one-click-se-demos/g'
grep -rl '{{gh.repo_name}}' . --exclude-dir .git | xargs sed -i 's/{{gh.repo_name}}/'"${{ github.repository_owner }}"'/g'
grep -rl '{{gh.org_name}}' . --exclude-dir .git | xargs sed -i 's/{{gh.org_name}}/'"${{ github.repository_owner }}"'/g'
- name: Setup Python3 🐍
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 9c139d8

Please sign in to comment.