Skip to content

Commit

Permalink
append date to pack names
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-mh committed Feb 10, 2024
1 parent bcb1195 commit 483497f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion util/basic_builder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import glob
import shutil
import tempfile
from os import path
from typing import Optional
Expand Down

0 comments on commit 483497f

Please sign in to comment.