35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Spring Cloud Deploy Docs
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
actions: write
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
# FIXME: enable when pushed to spring-projects
|
|
# if: github.repository_owner == 'spring-projects'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: docs-build
|
|
fetch-depth: 1
|
|
- name: Dump github context
|
|
run: echo ${{ github.ref_name }}
|
|
shell: bash
|
|
- name: Dump github context
|
|
run: echo $(git rev-parse --abbrev-ref HEAD)
|
|
shell: bash
|
|
- name: Dispatch (partial build)
|
|
if: github.ref_type == 'branch'
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
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'
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)
|