Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelad02 committed Jun 13, 2024
1 parent 76f0fef commit 400be15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,18 @@ jobs:
uses: battila7/get-version-action@v2


# Modify "module.json" with values specific to the release.
# Since the values for the "version" and "url" keys aren't known ahead of
# time, the manifest file in the repository is updated with these values.
#
# While this does modify the manifest file in-place, the changes are not
# commited to the repository, and only exist in the action's filesystem.
- name: Modify Module Manifest With Release-Specific Values
# Substitute the Manifest and Download URLs in the module.json
- name: Substitute Manifest and Download Links For Versioned Ones
id: sub_manifest_link_version
uses: cschleiden/replace-tokens@v1
uses: microsoft/variable-substitution@v1
with:
files: 'module.json'
files: "module.json"
env:
VERSION: ${{steps.get_version.outputs.version-without-v}}
URL: ${{ env.project_url }}
MANIFEST: ${{ env.latest_manifest_url }}
DOWNLOAD: ${{ env.release_module_url }}
version: ${{steps.get_version.outputs.version-without-v}}
url: ${{ env.project_url }}
manifest: ${{ env.latest_manifest_url }}
download: ${{ env.release_module_url }}
readme: ${{ env.project_url }}/blob/main/README.md


# Create a "module.zip" archive containing all the module's required files.
Expand All @@ -121,6 +117,7 @@ jobs:
LICENSE \
lang/ \
src/ \
css/ \
templates/
Expand Down
6 changes: 5 additions & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@
"name": "English",
"path": "lang/en.json"
}
]
],
"url": "replaced by workflow",
"manifest": "replaced by workflow",
"download": "replaced by workflow",
"readme": "replaced by workflow"
}

0 comments on commit 400be15

Please sign in to comment.