From 5a2b8673319966b28169373db646d50e9c236137 Mon Sep 17 00:00:00 2001 From: Dai MIKURUBE Date: Thu, 18 Apr 2024 14:47:11 +0900 Subject: [PATCH] Remove the GitHub Actions Workflow to sync master to main --- .github/workflows/main.yml | 39 -------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f9917c1..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Sync master to main -on: - push: - branches: - - "master" -jobs: - diff: - runs-on: ubuntu-latest - outputs: - hash-master: ${{ steps.hash-master.outputs.hash-master }} - hash-main: ${{ steps.hash-main.outputs.hash-main }} - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - id: hash-master - name: Hash the master branch - run: | - hash_master=$( git rev-parse origin/master ) - echo "$hash_master" - echo "hash-master=$hash_master" >> $GITHUB_OUTPUT - - id: hash-main - name: Hash the main branch - run: | - hash_main=$( git rev-parse origin/main ) - echo "$hash_main" - echo "hash-main=$hash_main" >> $GITHUB_OUTPUT - sync: - needs: diff - if: needs.diff.outputs.hash-master != needs.diff.outputs.hash-main - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Checkout master - run: git checkout master - - name: Sync master to main - run: git push origin master:main