Compare commits

...

5 Commits

Author SHA1 Message Date
2c12bb4eb3 20250207.110507
Some checks failed
Release Creation / build (release) Failing after 11m4s
2025-02-07 11:05:07 -06:00
20d9dd9a62 20250207.110331
Some checks failed
Release Creation / build (release) Failing after 20s
2025-02-07 11:03:31 -06:00
809063f0f6 20250207.105633
All checks were successful
Release Creation / build (release) Successful in 23s
2025-02-07 10:56:33 -06:00
dd9f1d8157 Update release workflow to improve readability
All checks were successful
Release Creation / build (release) Successful in 33s
- Simplified workflow by removing redundant steps and streamlining the process.
- Enhanced output by adding a commit message step to provide better context for future reference.
- Improved code readability and maintainability by removing unnecessary steps and focusing on essential actions.
2025-02-07 10:26:53 -06:00
9d87de53f0 Update release workflow with commit message variable
All checks were successful
Release Creation / build (release) Successful in 35s
- Added a new step to the release workflow that sets a commit message variable.
- This step ensures that the commit message is captured and stored for future reference.
- The commit message is retrieved using the `steps.commit-message.outputs.COMMIT_MESSAGE` variable.

Update release workflow to use commit message variable

- Updated the release workflow to use the commit message variable.
- This change ensures that the commit message is used when creating a release.
- The commit message is now stored in the `$GITHUB_OUTPUT` file and can be accessed by other steps in the workflow.
2025-02-07 10:22:42 -06:00
2 changed files with 14 additions and 11 deletions

View File

@@ -29,18 +29,23 @@ jobs:
# Create a zip file with all files required by the module to add to the release
- name: Create files (module.zip, module.json) for release
working-directory: ./src
run: >
mkdir -p dist
&& git archive --format zip --output dist/module.zip HEAD:src
&& cp src/module.json dist/
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
mkdir -p ../dist
&& zip -r ../dist/module.zip .
&& cp module.json ../dist/
&& echo \"Done!\nZipped module.json and copied module.js.\"
- name: Setting commit message
- name: Setting commit message variable
id: commit-message
run: >
COMMIT_MESSAGE=$(git log -1 --pretty=%B);
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
&& echo "commit message is '$COMMIT_MESSAGE'"
# Per
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#example-of-a-multiline-string
run: |
{
echo 'COMMIT_MESSAGE<<EOF'
git log -1 --pretty=%B
echo EOF
} >> "$GITHUB_OUTPUT"
# Create a release for this specific version
- name: Update Release with Files

View File

@@ -1,2 +0,0 @@
TEST=123
GITHUB_TOKEN=90b74545400305cb379a38d2c442d29d3aa911a4