Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cache version #35

Merged
merged 1 commit into from
Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
contents: write

jobs:
dependabot:
automerge_dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
Expand All @@ -17,7 +17,7 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
run: gh pr merge --auto --rebase --delete-branch "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
103 changes: 0 additions & 103 deletions .github/workflows/detekt-analysis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
# This workflow contains a single job called "build"
build:
check_pr:
# The type of runner that the job will run on
runs-on: ubuntu-20.04

Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
build-cache
key: gradle-${{ hashFiles('checksum.txt') }}
key: gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('checksum.txt') }}

- name: Beep
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
# This workflow contains a single job called "build"
build:
publish_sonatype:
# The type of runner that the job will run on
runs-on: ubuntu-20.04

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
build-cache
key: gradle-${{ hashFiles('checksum.txt') }}
key: gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('checksum.txt') }}

- name: Publish application
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
build:
publish_snapshot:
runs-on: ubuntu-20.04

# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
build-cache
key: gradle-${{ hashFiles('checksum.txt') }}
key: gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('checksum.txt') }}

- name: Publish application
run: |
Expand Down