From 8c14536ffcd30684fa454faf250415d6e69b855e Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Fri, 5 Apr 2024 17:02:07 -0400 Subject: [PATCH] Create spring-cloud-deploy-docs.yml --- .../workflows/spring-cloud-deploy-docs.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/spring-cloud-deploy-docs.yml diff --git a/.github/workflows/spring-cloud-deploy-docs.yml b/.github/workflows/spring-cloud-deploy-docs.yml new file mode 100644 index 00000000..74583a0e --- /dev/null +++ b/.github/workflows/spring-cloud-deploy-docs.yml @@ -0,0 +1,28 @@ +name: Deploy Docs +run-name: ${{ format('{0} ({1})', github.workflow, github.event.inputs.build-refname || 'all') }} +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: 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)