This GitHub Action updates the module.json or system.json file after a release is published.
This is to be used with the foundry-release-action
, and runs after a release is published to copy the manifest into main with the latest version information.
Create a folder named .github
at the root of your workflow, and inside that folder, create a workflows
folder.
In the workflows
folder, create a file named foundry_manifest_update.yml
with this content:
name: Foundry Manifest Update
on:
release:
types:
- published
jobs:
update_manifest_post_release:
runs-on: ubuntu-latest
name: Foundry Manifest Update
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: main
- name: Foundry Manifest Update
id: foundry-manifest-update
uses: foundryvtt-dcc/foundry-manifest-update-action@main
with:
actionToken: ${{ secrets.GITHUB_TOKEN }}
manifestFileName: 'system.json'
For manifestFileName
you will either enter system.json
or module.json
depending on your project.
You should not need to change actionToken
from the example above.