Skip to content

Commit

Permalink
fix: sync template
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 8, 2024
1 parent f1e5f66 commit dbe772f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/sync-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ jobs:
- name: Sync branch to template
env:
GH_TOKEN: ${{ steps.get_installation_token.outputs.token }}
IGNORE_FILES: "README.md another-file.txt"
run: |
branch_name=$(git rev-parse --abbrev-ref HEAD)
original_remote=$(git remote get-url origin)
pr_branch="sync-template/${branch_name}"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "ubiquity-os[bot]@users.noreply.github.com"
git config --global user.name "ubiquity-os[bot]"
git remote add template https://github.com/ubiquity/ts-template.git
git fetch template
Expand All @@ -54,11 +53,6 @@ jobs:
git merge template/main --allow-unrelated-histories --no-commit
fi
# Remove ignored files
for file in $IGNORE_FILES; do
git rm -rf "$file" || true
done
# Check if there are any changes
if git diff --staged --quiet && git diff --quiet; then
echo "No changes to sync from template."
Expand Down

0 comments on commit dbe772f

Please sign in to comment.