diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 99c1ad466b669..9d63663693f90 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -27,6 +27,8 @@ concurrency: jobs: gh-pages: runs-on: ubuntu-latest + permissions: + contents: write steps: # We explicitly don't use acryldata/sane-checkout-action because docusaurus runs # git commands to determine the last change date for each file. diff --git a/docs-website/graphql/generateGraphQLSchema.sh b/docs-website/graphql/generateGraphQLSchema.sh index a904a2e36d7c1..9a3f32a4efd08 100755 --- a/docs-website/graphql/generateGraphQLSchema.sh +++ b/docs-website/graphql/generateGraphQLSchema.sh @@ -1,22 +1,8 @@ #!/bin/sh -rm combined.graphql +if [ -f "combined.graphql" ] ; then + rm "combined.graphql" +fi touch combined.graphql echo "Generating combined GraphQL schema..." echo "# Auto Generated During Docs Build" >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/actions.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/analytics.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/app.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/auth.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/constraints.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/entity.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/assertions.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/ingestion.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/recommendation.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/search.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/tests.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/timeline.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/step.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/lineage.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/properties.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/forms.graphql >> combined.graphql -cat ../../datahub-graphql-core/src/main/resources/connection.graphql >> combined.graphql \ No newline at end of file +cat ../../datahub-graphql-core/src/main/resources/*.graphql >> combined.graphql