File tree Expand file tree Collapse file tree 3 files changed +41
-8
lines changed
Expand file tree Collapse file tree 3 files changed +41
-8
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,19 @@ jobs:
8585 id : info
8686 run : echo "latestJson=$(cat simplehoney-nightly.json)" >> $GITHUB_OUTPUT
8787
88+ - name : Announce Timestamp
89+ id : timestamp
90+ run : echo "buildTimestamp=$(date --iso-8601)" >> $GITHUB_OUTPUT
91+
8892 - name : Announce Release
89- uses :
compactmods/[email protected] 90- env :
91- DISCORD_BOT_TOKEN : ${{ secrets.DISCORD_BOT_TOKEN }}
93+ 9294 with :
93- filename : ${{ fromJson(steps.info.outputs.latestJson)[0].name}}
94- channel : ${{ secrets.NIGHTLY_CHANNEL_ID }}
95- modName : Simple Honey
96- modVersion : ${{ needs.get-package-info.outputs.version }}
97- mcVersion : ${{ needs.vars.outputs.mcVersion }}
95+ webhook-url : ${{ secrets.DISCORD_NIGHTLY_WEBHOOK }}
96+ avatar-url : " https://compactmods.dev/personal-shrinking-device.png"
97+ content : " **New Version Available: Simple Honey v${{ needs.get-package-info.outputs.version }}"
98+ filename : ${{ fromJson(steps.info.outputs.latestJson)[0].name }}
99+ embed-title : " **Mod File Information**"
100+ embed-description : " Filename: ${{ fromJson(steps.info.outputs.latestJson)[0].name}}"
101+ embed-url : " https://www.curseforge.com/minecraft/mc-mods/simple-honey"
102+ embed-thumbnail-url : " https://media.forgecdn.net/avatars/thumbnails/973/13/64/64/638475522072947924.png"
103+ embed-timestamp : ${{ steps.timestamp.outputs.buildTimestamp }}
Original file line number Diff line number Diff line change 2727 fetch-depth : 150
2828 fetch-tags : true
2929 submodules : true
30+
31+ - name : Force Fetch Tags
32+ run : git fetch --tags
33+
3034 - name : Version
3135 id : version
3236
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env groovy
2+ import java.util.jar.Attributes
3+ import java.util.jar.JarFile
4+ import java.util.jar.Manifest
5+
6+ if (args. length < 2 )
7+ {
8+ println " USAGE: read-manifest.groovy <jar_filename> <property_name>"
9+ System . exit(-1 )
10+ }
11+
12+ var jar = args[0 ]
13+ var prop = args[1 ]
14+
15+ var realProp = new Attributes.Name (prop)
16+
17+ JarFile jarFile = new JarFile (jar)
18+ var manifest = jarFile. manifest. getMainAttributes()
19+
20+ if (manifest. containsKey(realProp)) {
21+ var val = manifest. getValue(prop)
22+ println (" prop=$val " )
23+ }
You can’t perform that action at this time.
0 commit comments