From 38b1247dd56855c20e2456bf1351883d16a749cc Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:42:13 +0900 Subject: [PATCH] ci: disable all workflows except discord to avoid conflicts with telegram bots --- .github/workflows/build_pull_request.yml | 25 ----------- .github/workflows/open_pull_request.yml | 31 ------------- .github/workflows/release.yml | 50 --------------------- .github/workflows/update-gradle-wrapper.yml | 18 -------- 4 files changed, 124 deletions(-) delete mode 100644 .github/workflows/build_pull_request.yml delete mode 100644 .github/workflows/open_pull_request.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/update-gradle-wrapper.yml diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml deleted file mode 100644 index 250871bcc..000000000 --- a/.github/workflows/build_pull_request.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build pull request - -on: - workflow_dispatch: - pull_request: - branches: - - dev - -jobs: - release: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Cache Gradle - uses: burrunan/gradle-cache-action@v1 - - - name: Build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./gradlew build --no-daemon diff --git a/.github/workflows/open_pull_request.yml b/.github/workflows/open_pull_request.yml deleted file mode 100644 index 414540a04..000000000 --- a/.github/workflows/open_pull_request.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Open a PR to main - -on: - push: - branches: - - dev - workflow_dispatch: - -env: - MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main` - -jobs: - pull-request: - name: Open pull request - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Open pull request - uses: repo-sync/pull-request@v2 - with: - destination_branch: 'main' - pr_title: 'chore: ${{ env.MESSAGE }}' - pr_body: | - This pull request will ${{ env.MESSAGE }}. - - ## Dependencies before merge - - - [ ] https://github.com/inotia00/revanced-integrations - pr_draft: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 84ac54421..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Release - -on: - workflow_dispatch: - push: - branches: - - main - - dev - -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - # Make sure the release step uses its own credentials: - # https://github.com/cycjimmy/semantic-release-action#private-packages - persist-credentials: false - fetch-depth: 0 - - - name: Cache Gradle - uses: burrunan/gradle-cache-action@v1 - - - name: Build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./gradlew generateMeta clean - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "lts/*" - cache: 'npm' - - - name: Install dependencies - run: npm install - - - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PASSPHRASE }} - fingerprint: ${{ env.GPG_FINGERPRINT }} - - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }} - run: npm exec semantic-release diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml deleted file mode 100644 index 8136ad5f3..000000000 --- a/.github/workflows/update-gradle-wrapper.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Update Gradle wrapper - -on: - schedule: - - cron: "0 0 1 * *" - workflow_dispatch: - -jobs: - update: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Update Gradle Wrapper - uses: gradle-update/update-gradle-wrapper-action@v1 - with: - target-branch: dev