Skip to content

Commit

Permalink
update: debug creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Jun 18, 2024
1 parent f0d9509 commit ec3e6e3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,36 @@ jobs:
- run: python3 craft.py

- run: |
chmod +x ./gitcmd.sh
./gitcmd.sh
cd $GITHUB_WORKSPACE
ls -al
git tag -l
LATEST_TAG=`git tag --sort=refname |tail -n 2 |head -n 1`
echo "LATEST_TAG: $LATEST_TAG"
NEW_TAG=`git tag --sort=refname |tail -n 1`
echo "NEW_TAG: $NEW_TAG"
git log --format='%(trailers:key=Type,valueonly,separator=%x20)%x1c%s [%(trailers:key=Issue,valueonly,separator=,)]' $LATEST_TAG..$NEW_TAG | awk -F "\034" '{
gsub(/\[\]$/, "", $2);
if (length($1) == 0) $1="";
if (!($1 in item_count)) item_count[$1]=0;
items[$1, item_count[$1]]=$2;
item_count[$1]++;
}
END {
for (k in item_count) {
print k;
k2=k;
gsub(/./, "-", k2);
print k2
for (i=0; i<item_count[k]; i++) print "- "items[k, i];
print ""
}
}' > commit_notes
cat commit_notes
echo "Begin Creating Release..."
python3 ./releaser.py > version.txt
python3 ./releaser.py commit_notes > version.txt
echo "Create successful!"
cat version.txt
Expand Down
2 changes: 1 addition & 1 deletion gitcmd.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ git log --format='%(trailers:key=Type,valueonly,separator=%x20)%x1c%s [%(trailer
for (i=0; i<item_count[k]; i++) print "- "items[k, i];
print ""
}
}'
}' > commit_notes
5 changes: 4 additions & 1 deletion releaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
"""

import os
import sys

def main():
verify_output = os.popen("python3 ./verify.py ./creathackenv.sh").read()
update_logs = os.popen("bash ./gitcmd.sh").read()
with open(sys.argv[1], "r") as f:
log = f.read()
update_logs = log
print(template.replace("__VERIFY_OUTPUT__", verify_output).replace("__UPDATE_LOGS__", update_logs))
pass

Expand Down

0 comments on commit ec3e6e3

Please sign in to comment.