-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (28 loc) · 861 Bytes
/
action.yml
File metadata and controls
30 lines (28 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Netris Docs Tooling"
description: "Build and deploy Netris Sphinx docs to gh-pages"
inputs:
mode:
description: "build-only, deploy-only, or cleanup-only"
required: true
repo:
description: "Owner/repo of docs repository (e.g. netrisai/docs)"
required: true
ref_name:
description: "Branch name that triggered the run"
required: true
sha:
description: "Commit SHA that triggered the run"
required: true
runs:
using: "composite"
steps:
- name: Run docs tooling script
shell: bash
env:
GITHUB_REF_NAME: ${{ inputs.ref_name }}
GITHUB_SHA: ${{ inputs.sha }}
GITHUB_REPOSITORY: ${{ inputs.repo }}
run: |
set -euo pipefail
chmod +x "${GITHUB_ACTION_PATH}/scripts/updatePages.sh"
"${GITHUB_ACTION_PATH}/scripts/updatePages.sh" "${{ inputs.mode }}"