Skip to content

Commit

Permalink
feat: set my fork as target
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Nov 26, 2024
1 parent 7e55d55 commit f3a4d56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sync-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
GH_TOKEN: ${{ steps.get_installation_token.outputs.token }}
WHITELIST_FILES: ".github/ .husky/ .eslintrc .nvmrc .prettierrc .yarnrc.yml tsconfig.json"
ADDITIONAL_FILES: ${{ github.event.inputs.additional_files }}
BLACKLIST_FILES: ""
BLACKLIST_FILES: ".github/workflows/sync-template.yml"
run: |
branch_name=$(git rev-parse --abbrev-ref HEAD)
original_remote=$(git remote get-url origin)
Expand All @@ -61,7 +61,7 @@ jobs:
git checkout -b "$pr_branch"
fi
git clone https://github.com/ubiquity/ts-template template-repo
git clone https://github.com/zugdev/ts-template template-repo
# Convert WHITELIST_FILES to array
whitelist_files=()
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
# Push changes to the remote repository
git push "$original_remote" "$pr_branch"
# Check for existing pull requests
existing_pr=$(gh pr list --base "$branch_name" --head "$pr_branch" --state open --json id --jq '.[0].id')
Expand All @@ -132,4 +132,4 @@ jobs:
else
gh pr edit "$existing_pr" --body "This pull request merges changes from the template repository, overwriting or removing the following files:${file_list}"
echo "Updated the existing pull request #$existing_pr."
fi
fi

0 comments on commit f3a4d56

Please sign in to comment.