Compare commits

...

6 Commits

Author SHA1 Message Date
4f0513c72c Update commit message formatting
Some checks failed
Release Creation / build (release) Failing after 26s
- Replace newline characters with line breaks in commit message body.
- Enhance readability by using a single line break between each line of the commit message.
2025-02-07 10:05:37 -06:00
5e064a8dfb 20250207.100205
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-07 10:02:05 -06:00
d0101c9666 Update workflow to use environment variables
Some checks failed
Release Creation / build (release) Failing after 23s
- The workflow has been updated to use environment variables instead of hardcoded values.
- This change improves the flexibility and maintainability of the workflow.
- The changes include using `$GITHUB_OUTPUT` to store the commit message and `$COMMIT_MESSAGE` to retrieve it.
2025-02-07 09:55:18 -06:00
fc88596821 20250207.095231
All checks were successful
Release Creation / build (release) Successful in 26s
2025-02-07 09:52:31 -06:00
859339b403 20250207.094650
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-07 09:46:50 -06:00
2dd53178cf Update release workflow and tasks
Some checks failed
Release Creation / build (release) Failing after 24s
- Updated the release workflow to use a more efficient method for setting the commit message.
- Added a new task to the VSCode tasks.json file to create a new release with a dynamic tag based on the current date and
time.

These changes improve the efficiency and automation of the release process, ensuring that releases are created with accurate
and up-to-date information.
2025-02-07 09:43:21 -06:00
2 changed files with 16 additions and 5 deletions

View File

@@ -35,8 +35,12 @@ jobs:
&& cp src/module.json dist/ && cp src/module.json dist/
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\" && echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
- name: Echo commit message - name: Setting commit message
run: echo "`${{ github.event.head_commit.message }}`" id: commit-message
run: >
COMMIT_MESSAGE=$(git log -1 --pretty=%B);
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
&& echo "commit message is '$COMMIT_MESSAGE'"
# Create a release for this specific version # Create a release for this specific version
- name: Update Release with Files - name: Update Release with Files
@@ -46,4 +50,5 @@ jobs:
files: |- files: |-
./dist/module.json ./dist/module.json
./dist/module.zip ./dist/module.zip
body: ${{ github.event.head_commit.message }} body: |-
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}

8
.vscode/tasks.json vendored
View File

@@ -4,10 +4,16 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "new release", "label": "commit and new release",
"type": "shell", "type": "shell",
"command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git add . && git commit -m \"$TAG\" && git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"", "command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git add . && git commit -m \"$TAG\" && git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"",
"problemMatcher": [] "problemMatcher": []
},
{
"label": "new release",
"type": "shell",
"command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"",
"problemMatcher": []
} }
] ]
} }