Skip to content
Open
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
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,34 @@ jobs:
MAVEN_URL: ${{ secrets.NEW_MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.NEW_MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEW_MAVEN_PASSWORD }}

update_builds_cache:
needs: publish
if: always()
runs-on: ubuntu-24.04
permissions:
contents: write

steps:
- name: checkout repository
uses: actions/checkout@v4

- name: setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- name: make gradle wrapper executable
run: chmod +x ./gradlew

- name: update builds cache
run: ./gradlew updateNamedMappingsBuildsCache

- name: commit builds cache
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add named-mappings-builds.json
git diff --cached --quiet || git commit -m 'bump build numbers'
git push
Loading