From 33b44556580e2ef1ac9e3ddd04431cebab61bea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Tue, 22 Oct 2024 19:37:17 +0900 Subject: [PATCH] revert: remove sync-template https://github.com/ubiquity/ts-template/issues/54#issuecomment-2428842723 --- .github/workflows/sync-template.yml | 49 ----------------------------- revert-pr-9.txt | 1 - 2 files changed, 50 deletions(-) delete mode 100644 .github/workflows/sync-template.yml delete mode 100644 revert-pr-9.txt diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml deleted file mode 100644 index dc92ad5..0000000 --- a/.github/workflows/sync-template.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Sync branch to template - -on: - workflow_dispatch: - schedule: - - cron: '14 0 1 * *' - -jobs: - sync: - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Get GitHub App token - uses: tibdex/github-app-token@v1.7.0 - id: get_installation_token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - - 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 checkout -b "$pr_branch" - git clone https://github.com/ubiquity/ts-template - for file in $IGNORE_FILES; do - rm -rf "ts-template/$file" - done - cp -rf ts-template/* . - rm -rf ts-template/ - git add . - git commit -m "chore: sync template" - git push "$original_remote" "$pr_branch" - gh pr create --title "Sync branch to template" --body "This pull request merges changes from the template repository." --head "$pr_branch" --base "$branch_name" - - diff --git a/revert-pr-9.txt b/revert-pr-9.txt deleted file mode 100644 index e529e82..0000000 --- a/revert-pr-9.txt +++ /dev/null @@ -1 +0,0 @@ -This file was created to revert PR #9 \ No newline at end of file