chore(docs): add empty changeset step to actions (#6377)

- Creates a script that runs the `yarn changeset --empty` command if there are file changes. This is important to not create PRs of just empty changesets if there are no file changes.
- Run script in all docs-generation PRs
- Fix to condition in `generate-docblock` action
This commit is contained in:
Shahed Nasser
2024-02-13 10:58:48 +02:00
committed by GitHub
parent 374a3f4dab
commit 5ddae7ecd1
8 changed files with 59 additions and 1 deletions

View File

@@ -48,6 +48,11 @@ jobs:
GIT_OWNER: ${{ github.repository_owner }}
GIT_REPO: medusa
- name: Generate Changeset
if: steps.check-commit.outputs.is_release_commit == 'true'
run: "yarn generate:changeset"
working-directory: docs-util/packages/scripts
- name: Create Pull Request
if: steps.check-commit.outputs.is_release_commit == 'true'
uses: peter-evans/create-pull-request@v5