Skip to content

Commit 7ce49a5

Browse files
committed
added the korro task and the relevant new sources to the generated-sources.yml gh action
1 parent 7a20964 commit 7ce49a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/generated-sources.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ jobs:
3535
git config --global user.name "GitHub Actions"
3636
3737
- name: Run Gradle task
38-
run: ./gradlew :core:processKDocsMain
38+
run: ./gradlew :core:processKDocsMain korro
3939

4040
- name: Check for changes in generated sources
4141
id: git-diff
42-
run: echo "::set-output name=changed::$(if git diff --quiet './core/generated-sources'; then echo 'false'; else echo 'true'; fi)"
42+
run: echo "::set-output name=changed::$(if git diff --quiet './core/generated-sources' './docs/StardustDocs/snippets' './docs/StardustDocs/topics'; then echo 'false'; else echo 'true'; fi)"
4343

4444
- name: Commit and push if changes
4545
id: git-commit
4646
if: steps.git-diff.outputs.changed == 'true'
4747
run: |
4848
git checkout -b generated-sources/docs-update-${{ github.run_number }}
49-
git add './core/generated-sources'
49+
git add './core/generated-sources' './docs/StardustDocs/snippets' './docs/StardustDocs/topics'
5050
git commit -m "Update generated sources with recent changes"
5151
git push origin generated-sources/docs-update-${{ github.run_number }}
5252
echo "::set-output name=commit::$(git rev-parse HEAD)"

0 commit comments

Comments
 (0)