mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 03:06:14 +00:00
ab4b11b9f0
* Try disabling cron jobs in forks * Try fixing quality checks * Try fixing tests and enterprise builds * Stop using the ssh private key in more quality checks * Try disabling codecov if there is no token
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
name: Update Gradle Wrapper
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
update-gradle-wrapper:
|
|
runs-on: ubuntu-latest
|
|
# Skip in forks
|
|
if: ${{ github.event_name != 'pull_request' && github.event.repository.fork != true }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
|
name: Use JDK 21
|
|
if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch'
|
|
with:
|
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
|
java-version: '21'
|
|
- name: Update Gradle Wrapper
|
|
uses: gradle-update/update-gradle-wrapper-action@512b1875f3b6270828abfe77b247d5895a2da1e5 # v2.1.0
|
|
with:
|
|
repo-token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
target-branch: develop
|
|
labels: PR-Build
|