From 10312d0a7d8d1f73ae96c86f3e4a45d1764c3983 Mon Sep 17 00:00:00 2001 From: chiteroman <98092901+chiteroman@users.noreply.github.com> Date: Mon, 11 Dec 2023 01:38:01 +0100 Subject: [PATCH] Add github files --- .github/dependabot.yml | 16 +++++ .github/workflows/android.yml | 71 +++++++++++---------- .github/workflows/update-gradle-wrapper.yml | 25 ++++++++ 3 files changed, 77 insertions(+), 35 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/update-gradle-wrapper.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..bf3004d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" + + - package-ecosystem: "gradle" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 3dd94a5..1ba13be 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,36 +1,37 @@ -name: Android CI - -on: - push: - branches: [ "dev" ] - pull_request: - branches: [ "dev" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Check out - uses: actions/checkout@v4 - with: - submodules: "recursive" - - - name: set up JDK 17 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '17' - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build with Gradle - run: ./gradlew assembleRelease - - - name: Upload PlayIntegrityFix.zip - uses: actions/upload-artifact@v3 - with: - name: PlayIntegrityFix +name: Android CI + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Check out + uses: actions/checkout@v4 + with: + submodules: "recursive" + fetch-depth: 0 + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew assembleRelease + + - name: Upload PlayIntegrityFix.zip + uses: actions/upload-artifact@v3 + with: + name: PlayIntegrityFix path: module/* \ No newline at end of file diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml new file mode 100644 index 0000000..9aab2a5 --- /dev/null +++ b/.github/workflows/update-gradle-wrapper.yml @@ -0,0 +1,25 @@ +name: Update Gradle Wrapper + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + update-gradle-wrapper: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v4 + + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: 21 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Update Gradle Wrapper + uses: gradle-update/update-gradle-wrapper-action@v1