Skip to content

Commit

Permalink
add compatibility to release API
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Dec 8, 2023
1 parent a19a352 commit 56b358d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,20 @@ 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
with:
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
Expand Down

0 comments on commit 56b358d

Please sign in to comment.