Compare commits

..

3 Commits

Author SHA1 Message Date
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
2 changed files with 6 additions and 4 deletions

View File

@@ -36,7 +36,8 @@ jobs:
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
- name: Setting commit message
run: echo "COMMIT_MSG=$(git log -1 --pretty=%B)" >> "$GITHUB_ENV" && echo "COMMIT MESSAGE IS `$COMMIT_MSG`"
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
- name: Update Release with Files
@@ -46,4 +47,4 @@ jobs:
files: |-
./dist/module.json
./dist/module.zip
body: $COMMIT_MSG
body: ${{ steps.commit-message.outputs.COMMIT_MESSAGE }}

5
.vscode/tasks.json vendored
View File

@@ -7,12 +7,13 @@
"label": "commit and new release",
"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\"",
"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\""
"command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"",
"problemMatcher": []
}
]
}