Compare commits
9 Commits
v20250207.
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
2c12bb4eb3
|
|||
|
20d9dd9a62
|
|||
|
809063f0f6
|
|||
|
dd9f1d8157
|
|||
|
9d87de53f0
|
|||
|
4f0513c72c
|
|||
|
5e064a8dfb
|
|||
|
d0101c9666
|
|||
|
fc88596821
|
@@ -29,16 +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
|
||||
run: echo "COMMIT_MSG=$(git log -1 --pretty=%B)" >> "$GITHUB_ENV" && echo "COMMIT MESSAGE IS `$COMMIT_MSG`"
|
||||
- name: Retrieve commit message
|
||||
run: echo "${{ env.COMMIT_MESSAGE }}"
|
||||
- name: Setting commit message variable
|
||||
id: 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
|
||||
@@ -48,4 +55,5 @@ jobs:
|
||||
files: |-
|
||||
./dist/module.json
|
||||
./dist/module.zip
|
||||
body: ${{ env.COMMIT_MESSAGE }}
|
||||
body: |-
|
||||
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||
Reference in New Issue
Block a user