build-template #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-template | |
on: | |
workflow_dispatch: | |
inputs: | |
repository: | |
type: string | |
required: true | |
name: | |
type: string | |
required: true | |
version: | |
type: string | |
required: true | |
new_template: | |
type: boolean | |
required: true | |
jobs: | |
build-template: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: pros-branchline | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.inputs.repository }} | |
ref: refs/heads/master | |
path: template-repo | |
- uses: actions/checkout@v4 | |
with: | |
repository: purduesigbots/pros-docs | |
ref: refs/heads/test-branchline-uploads | |
path: pros-docs | |
- name: Install CLI | |
run: python3 -m pip install pros-cli | |
- name: Create template | |
run: pros c create-template . ${{ github.event.inputs.name }} ${{ github.event.inputs.version }} --project ${{ github.event.inputs.name }} | |
- name: Look for template | |
run: ls | |
- name: Move template to pros-docs | |
run: python3 pros-branchline/upload.py ${{ github.event.inputs.name }} ${{ github.event.inputs.version }} | |
- name: Look for zip | |
run: tree pros-docs/v5/_static/branchline | |