From 483497f07c385a1463dc659f5a5deaf70edddc4d Mon Sep 17 00:00:00 2001 From: Jamie Hodgson Date: Sat, 10 Feb 2024 10:01:47 +0100 Subject: [PATCH] append date to pack names --- .github/workflows/main.yml | 15 +++++++++++---- util/basic_builder.py | 1 - 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e16319..b3c9aab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 @@ -25,7 +25,7 @@ jobs: run: which cargo || sudo apt-get install -y cargo - name: Set up Cargo cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -47,8 +47,15 @@ jobs: python3 $builder done - - name: Get current date - run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV + - name: Rename packs + run: | + CURRENT_DATE=$(date +'%Y-%m-%d') + + for pack in *.iconpack; do + mv $pack $(echo $pack | sed "s|\.iconpack|-$CURRENT_DATE.iconpack|g") + done + + echo "CURRENT_DATE=$CURRENT_DATE" >> $GITHUB_ENV - name: Create release uses: "marvinpinto/action-automatic-releases@latest" diff --git a/util/basic_builder.py b/util/basic_builder.py index e34cb83..da9ab5a 100644 --- a/util/basic_builder.py +++ b/util/basic_builder.py @@ -1,5 +1,4 @@ import glob -import shutil import tempfile from os import path from typing import Optional