docs/.github/actions/get-docs-early-access/action.yml

34 строки
933 B
YAML

name: Clone and add docs-early-access
description: Clone docs-early-access and copy its content into the repo
inputs:
token:
description: PAT
required: true
runs:
using: 'composite'
steps:
- name: Figure out which branch to checkout
id: check-early-access
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash
run: node .github/actions-scripts/what-docs-early-access-branch.js
- name: Clone
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
with:
repository: github/docs-early-access
token: ${{ inputs.token }}
path: docs-early-access
ref: ${{ steps.check-early-access.outputs.branch }}
- name: Merge docs-early-access repo's folders
shell: bash
run: |
.github/actions-scripts/merge-early-access.sh
rm -fr docs-early-access