Add merge-dependabot-pr.yml

Improve `deploy-docs.yml`
This commit is contained in:
Artem Bilan
2023-12-22 13:14:15 -05:00
parent 7f612d4ccf
commit 4962670bcb
2 changed files with 24 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
name: Deploy Docs
on:
push:
branches-ignore: [ gh-pages ]
tags: '**'
branches:
- '*.x'
- main
tags:
- '**'
repository_dispatch:
types: request-build-reference # legacy
#schedule:
@@ -21,13 +25,16 @@ jobs:
if: github.repository_owner == 'spring-projects'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: docs-build
fetch-depth: 1
show-progress: false
- name: Dispatch (partial build)
if: github.ref_type == 'branch'
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
- name: Dispatch (full build)
if: github.ref_type == 'tag'
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)