#Hey. Thanks for the `ChangeSet` object
1 messages · Page 1 of 1 (latest)
Nevermind I did it like this :
- id: 'generate-docs-patch'
name: 'Generate docs'
uses: 'dagger/dagger-for-github@v8.2.0'
with:
version: "latest"
call: "generate-docs as-patch contents"
dagger-flags: '--silent'
env:
DAGGER_NO_NAG: '1'
- name: 'Check documentation'
run: |
echo '${{ steps.generate-docs-patch.outputs.output }}' | git apply
You can also call export on the Changeset object which exports the content into your fs without going through the patch | git apply step
indeed. thank you.
There's also a --auto-apply so when a changeset is returned, it will not prompt the user. I haven't tried it yet with the dagger-for-github but I guess that should work with dagger-flags field