-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0de880c
commit f06c8c3
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,21 +56,24 @@ jobs: | |
- name: Rename before upload | ||
run: | | ||
mkdir izpack | ||
# If this works just gotta figure out how to append datetime | ||
# mv /home/runner/.m2/repository/forge/forge-installer/*/*.jar izpack/ | ||
# move bz2 and jar from work dir to izpack dir | ||
mv /home/runner/work/forge/forge/forge-installer/*/*.{bz2,jar} izpack/ | ||
cd izpack | ||
d=$(date +%m.%d) | ||
# rename files | ||
# rename files and append date | ||
for file in *.jar; do | ||
outj="$(basename -s .jar *)" | ||
mv "${outj}.jar" "${outj}-${d}.jar" | ||
bname="${file%.*}" | ||
echo "file renamed to ${bname}-${d}.jar" | ||
mv "${bname}.jar" "${bname}-${d}.jar" | ||
done | ||
for file in *.bz2; do | ||
outb="$(basename -s .tar.bz2 *)" | ||
mv "${outb}.tar.bz2" "${outb}-${d}.tar.bz2" | ||
# remove .bz2 | ||
fname="${file%.*}" | ||
# remove .tar | ||
bname="${fname%.*}" | ||
echo "file renamed to ${bname}-${d}.tar.bz2" | ||
mv "${fname}.bz2" "${bname}-${d}.tar.bz2" | ||
done | ||
ls | ||
- name: 📂 Sync files | ||
uses: SamKirkland/[email protected] | ||
|
@@ -84,6 +87,3 @@ jobs: | |
*.pom | ||
*.repositories | ||
*.xml | ||