diff --git a/.github/workflows/auto-update-documentation.yml b/.github/workflows/auto-update-documentation.yml index 90c54d195c..760fe8641e 100644 --- a/.github/workflows/auto-update-documentation.yml +++ b/.github/workflows/auto-update-documentation.yml @@ -9,10 +9,8 @@ on: schedule: - cron: "0 0 * * *" - repository_dispatch: - types: - - update-vespa-version - - update-vespa-cli-doc + push: + branches: [push-via-pr] # Test the workflow by pushing to this branch permissions: contents: write @@ -69,7 +67,8 @@ jobs: with: commit-message: "Update Vespa version to ${{ steps.vespa-metadata.outputs.version }}." files: _config.yml - push: ${{ env.ENABLE_PUSH == 'true' }} + # push: ${{ env.ENABLE_PUSH == 'true' }} + push: "true" update-vespa-cli-doc: # @@ -117,8 +116,8 @@ jobs: uses: ./.github/actions/commit-updated-docs with: commit-message: "Update 'Vespa-CLI' reference documentation." - files: _config.yml - push: ${{ env.ENABLE_PUSH == 'true' }} + files: ${{ env.VESPA_CLI_DOC_DIR }} + push: "true" update-metric-reference: # @@ -169,4 +168,4 @@ jobs: with: commit-message: "Update 'Metric' reference documentation." files: "en/reference/*-metrics-reference.html" - push: ${{ env.ENABLE_PUSH == 'true' }} + push: "true"