From f356d4ab575f815c57408f25945eca6d61e40e9c Mon Sep 17 00:00:00 2001 From: Speiger Date: Tue, 14 Jun 2022 09:23:20 +0200 Subject: [PATCH] Trying out a auto sync between branches. --- .github/workflows/build_tests_action.yml | 2 -- .github/workflows/sync-action.yml | 34 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/sync-action.yml diff --git a/.github/workflows/build_tests_action.yml b/.github/workflows/build_tests_action.yml index bff610e..ee4ecef 100644 --- a/.github/workflows/build_tests_action.yml +++ b/.github/workflows/build_tests_action.yml @@ -23,8 +23,6 @@ jobs: - name: Make gradlew executable run: chmod +x ./gradlew - name: Build and Test - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: ./gradlew generateTestSource test jacocoTestReport --info -Dfull_test_suite=true - name: Publish Test Result diff --git a/.github/workflows/sync-action.yml b/.github/workflows/sync-action.yml new file mode 100644 index 0000000..21ffec5 --- /dev/null +++ b/.github/workflows/sync-action.yml @@ -0,0 +1,34 @@ +name: Sync Branch + +on: + push: + branches: [ master ] + +jobs: + build: + name: Sync Branch + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + cache: gradle + + - name: Make gradlew executable + run: chmod +x ./gradlew + - name: Build and Test + run: ./gradlew generateGithubSource --info -Dfull_test_suite=true + + - uses: GuillaumeFalourd/copy-push-files@v1 + with: + source_files: src/builder src/main src/test Changelog.md README.md + remote_repository: https://github.com/Speiger/Primitive-Collections + access_token: ${{ secrets.PUSH_TOKEN }} + target_branch: debug + \ No newline at end of file