Skip to content

Commit

Permalink
fix: use sed
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrafal authored Aug 21, 2024
1 parent ec92464 commit 547de5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/add-sync-to-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Read sync.yml content
id: read-sync-yml
run: |
SYNC_CONTENT=$(cat .github/workflows/sync.yml)
SYNC_CONTENT=$(cat .github/templates/sync.yml | sed 's/[$()`]/\\&/g')
echo "SYNC_CONTENT<<EOF" >> $GITHUB_ENV
echo "$SYNC_CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
Expand All @@ -39,7 +39,7 @@ jobs:
branch_name="add-sync-script"
git checkout -b $branch_name
mkdir -p .github/workflows
echo ${{env.SYNC_CONTENT}} > .github/workflows/sync.yml
echo "${{ env.SYNC_CONTENT }}" > .github/workflows/sync.yml
git add .github/workflows/sync.yml
git commit -m "Add sync.yml workflow"
git push origin $branch_name
Expand Down

0 comments on commit 547de5f

Please sign in to comment.