Skip to content

Commit

Permalink
Add merge-dependabot-pr.yml
Browse files Browse the repository at this point in the history
Improve `deploy-docs.yml`
  • Loading branch information
artembilan committed Dec 22, 2023
1 parent 7f612d4 commit 4962670
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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)
14 changes: 14 additions & 0 deletions .github/workflows/merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Merge Dependabot PR

on:
pull_request:
branches:
- main

run-name: Merge Dependabot PR ${{ github.ref_name }}

jobs:
merge-dependabot-pr:
permissions: write-all

uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@v1

0 comments on commit 4962670

Please sign in to comment.