Change module.json to work with old location of socketlib
This commit is contained in:
@@ -72,36 +72,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
# Extract version embedded in the tag.
|
||||
# This step expects the tag to be one of the following formats:
|
||||
# - "v<major>.<minor>.<patch>" (e.g., "v1.2.3")
|
||||
# - "<major>.<minor>.<patch>" (e.g., "1.2.3")
|
||||
#
|
||||
# The version will be used by later steps to fill in the value for the
|
||||
# "version" key required for a valid module manifest.
|
||||
- name: Extract Version From Tag
|
||||
id: get_version
|
||||
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'
|
||||
env:
|
||||
VERSION: ${{steps.get_version.outputs.version-without-v}}
|
||||
URL: ${{ env.project_url }}
|
||||
MANIFEST: ${{ env.latest_manifest_url }}
|
||||
DOWNLOAD: ${{ env.release_module_url }}
|
||||
|
||||
version: ${{github.event.release.tag_name}}
|
||||
url: https://github.com/${{github.repository}}
|
||||
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json
|
||||
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
|
||||
|
||||
# Create a "module.zip" archive containing all the module's required files.
|
||||
# If you have other directories or files that will need to be added to
|
||||
|
||||
Reference in New Issue
Block a user