File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ trigger-jitpack :
9+ name : Trigger JitPack Build
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Trigger JitPack build
13+ run : |
14+ echo "Triggering JitPack build for ${{ github.event.release.tag_name }}"
15+ curl -s "https://jitpack.io/com/github/ZrdJ/${{ github.event.repository.name }}/${{ github.event.release.tag_name }}/build.log" || true
16+
17+ update-readme :
18+ name : Update README Version
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ with :
23+ ref : main
24+ - name : Update version in README
25+ run : |
26+ sed -i 's/<version>.*<\/version>/<version>${{ github.event.release.tag_name }}<\/version>/g' README.md
27+ - name : Commit and push
28+ run : |
29+ git config user.name "github-actions[bot]"
30+ git config user.email "github-actions[bot]@users.noreply.github.com"
31+ git add README.md
32+ git diff --staged --quiet || git commit -m "Update README to version ${{ github.event.release.tag_name }}"
33+ git push
Original file line number Diff line number Diff line change 55
66 <groupId >com.github.zrdj</groupId >
77 <artifactId >java-predicates</artifactId >
8- <version >0.4 .0</version >
8+ <version >0.5 .0</version >
99 <packaging >jar</packaging >
1010
1111 <name >java-predicates</name >
You can’t perform that action at this time.
0 commit comments