Compare commits
6 Commits
v20250207.
...
v20250207.
| Author | SHA1 | Date | |
|---|---|---|---|
|
2c12bb4eb3
|
|||
|
20d9dd9a62
|
|||
|
809063f0f6
|
|||
|
dd9f1d8157
|
|||
|
9d87de53f0
|
|||
|
4f0513c72c
|
@@ -29,18 +29,23 @@ jobs:
|
|||||||
|
|
||||||
# Create a zip file with all files required by the module to add to the release
|
# 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
|
- name: Create files (module.zip, module.json) for release
|
||||||
|
working-directory: ./src
|
||||||
run: >
|
run: >
|
||||||
mkdir -p dist
|
mkdir -p ../dist
|
||||||
&& git archive --format zip --output dist/module.zip HEAD:src
|
&& zip -r ../dist/module.zip .
|
||||||
&& cp src/module.json dist/
|
&& cp module.json ../dist/
|
||||||
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
|
&& echo \"Done!\nZipped module.json and copied module.js.\"
|
||||||
|
|
||||||
- name: Setting commit message
|
- name: Setting commit message variable
|
||||||
id: commit-message
|
id: commit-message
|
||||||
run: >
|
# Per
|
||||||
COMMIT_MESSAGE=$(git log -1 --pretty=%B);
|
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#example-of-a-multiline-string
|
||||||
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
|
run: |
|
||||||
&& echo "commit message is '$COMMIT_MESSAGE'"
|
{
|
||||||
|
echo 'COMMIT_MESSAGE<<EOF'
|
||||||
|
git log -1 --pretty=%B
|
||||||
|
echo EOF
|
||||||
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# Create a release for this specific version
|
# Create a release for this specific version
|
||||||
- name: Update Release with Files
|
- name: Update Release with Files
|
||||||
@@ -50,4 +55,5 @@ jobs:
|
|||||||
files: |-
|
files: |-
|
||||||
./dist/module.json
|
./dist/module.json
|
||||||
./dist/module.zip
|
./dist/module.zip
|
||||||
body: ${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
body: |-
|
||||||
|
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||||
Reference in New Issue
Block a user