diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e9f885..8208f7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,12 @@ jobs: field: 'download' value: "https://github.com/${{github.repository}}/releases/download/${{steps.tag.outputs.tag}}/${{steps.systemID.outputs.prop}}.zip" + - name: get compatibility + id: compatibility + uses: notiz-dev/github-action-json-property@release + with: + path: 'module.json' + prop_path: 'compatibility' - name: Foundry Release API uses: fjogeleit/http-request-action@v1 @@ -54,7 +60,7 @@ jobs: url: 'https://api.foundryvtt.com/_api/packages/release_version' method: 'POST' customHeaders: '{"Content-Type": "application/json", "Authorization" : "${{ secrets.FOUNDRY_KEY }}"}' - data: '{"dry_run": false, "release": {"version" : "${{steps.tag.outputs.tag}}", "manifest": "https://raw.githubusercontent.com/${{github.repository}}/${{steps.tag.outputs.tag}}/system.json", "notes" : "", "compatibility" : {"minimum": steps.compatibility.outputs.prop.minimum, "verified": steps.compatibility.outputs.prop.verified, "maximum": steps.compatibility.outputs.prop.maximum} } }' + data: '{"dry_run": false, "release": {"version" : "${{steps.tag.outputs.tag}}", "manifest": "https://raw.githubusercontent.com/${{github.repository}}/${{steps.tag.outputs.tag}}/system.json", "notes" : "", "compatibility" : {"minimum": ${{steps.compatibility.outputs.prop.minimum}}, "verified": ${{steps.compatibility.outputs.prop.verified}}, "maximum": ${{steps.compatibility.outputs.prop.maximum}}} } }' # - name: Generate Changelog # id: changelog