Skip to content

Commit

Permalink
finally renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
kevlahnota authored Oct 23, 2024
1 parent 0de880c commit f06c8c3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/snapshots-pc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -84,6 +87,3 @@ jobs:
*.pom
*.repositories
*.xml

0 comments on commit f06c8c3

Please sign in to comment.