Skip to content

Commit

Permalink
fix exclude in grep
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed Nov 25, 2024
1 parent 96e6758 commit bff562f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-pages-on-forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
- name: Replace URLs to match git repo ✂️
run: |
grep -rl '${localEnv:GITHUB_REPOSITORY}' . --exclude-dir {.git,.cp,.github,.vscode} | xargs sed -i 's@${localEnv:GITHUB_REPOSITORY}@'"${{ github.repository }}"'@g'
grep -rl '{{gh.repo_name}}' . --exclude-dir {.git,.cp,.github,.vscode} | xargs sed -i 's/{{gh.repo_name}}/'"${{ github.event.repository.name }}"'/g'
grep -rl '{{gh.org_name}}' . --exclude-dir {.git,.cp,.github,.vscode} | xargs sed -i 's/{{gh.org_name}}/'"${{ github.repository_owner }}"'/g'
grep -rl '{{gh.repository}}' . --exclude-dir {.git,.cp,.github,.vscode} | xargs sed -i 's@{{gh.repository}}@'"${{ github.repository }}"'@g'
grep -rl '{{gh.branch}}' . --exclude-dir {.git,.cp,.github,.vscode} | xargs sed -i 's@{{gh.branch}}@'"${{ steps.find_branch.outputs.branch }}"'@g'
grep -rl '${localEnv:GITHUB_REPOSITORY}' . --exclude-dir .git --exclude-dir .cp | xargs sed -i 's@${localEnv:GITHUB_REPOSITORY}@'"${{ github.repository }}"'@g'
grep -rl '{{gh.repo_name}}' . --exclude-dir .git --exclude-dir .cp | xargs sed -i 's/{{gh.repo_name}}/'"${{ github.event.repository.name }}"'/g'
grep -rl '{{gh.org_name}}' . --exclude-dir .git --exclude-dir .cp | xargs sed -i 's/{{gh.org_name}}/'"${{ github.repository_owner }}"'/g'
grep -rl '{{gh.repository}}' . --exclude-dir .git --exclude-dir .cp | xargs sed -i 's@{{gh.repository}}@'"${{ github.repository }}"'@g'
grep -rl '{{gh.branch}}' . --exclude-dir .git --exclude-dir .cp | xargs sed -i 's@{{gh.branch}}@'"${{ steps.find_branch.outputs.branch }}"'@g'
- name: Setup Python3 🐍
uses: actions/setup-python@v5
Expand Down

0 comments on commit bff562f

Please sign in to comment.