Skip to content

Commit af604e9

Browse files
authored
Merge pull request #49 from nmfs-opensci/eeholmes-patch-2
fix quotes in action.yml
2 parents 7736041 + d73194b commit af604e9

3 files changed

Lines changed: 33 additions & 37 deletions

File tree

.github/actions/create-draft-release/action.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
name: Create draft release
2-
description: Create a draft GitHub Release using VERSION from Dockerfile (YYYY.MM.DD). Fails if VERSION is missing or malformed.
1+
name: "Create draft release"
2+
description: "Create a draft GitHub Release using VERSION from Dockerfile (YYYY.MM.DD). Fails if VERSION is missing or malformed."
33

44
inputs:
55
tag_prefix:
6-
description: Optional prefix for the tag (e.g. v). Default is empty.
6+
description: "Optional prefix for the tag (e.g. v). Default is empty."
77
required: false
88
default: ""
99
dockerfile_path:
10-
description: Path to Dockerfile to parse version from
10+
description: "Path to Dockerfile to parse version from"
1111
required: false
12-
default: Dockerfile
12+
default: "Dockerfile"
1313
target:
14-
description: Git ref/sha to tag (default: current commit SHA)
14+
description: "Git ref/sha to tag (default: current commit SHA)"
1515
required: false
1616
default: ""
1717
generate_notes:
18-
description: Whether to auto-generate release notes (true/false)
18+
description: "Whether to auto-generate release notes (true/false)"
1919
required: false
2020
default: "true"
2121

2222
runs:
2323
using: composite
2424
steps:
25-
- name: Extract and validate VERSION
25+
- name: "Extract and validate VERSION"
2626
id: ver
2727
shell: bash
2828
run: |
@@ -50,16 +50,19 @@ runs:
5050
5151
tag="${{ inputs.tag_prefix }}${version}"
5252
echo "Resolved tag: $tag"
53+
54+
# Export for later steps
5355
echo "TAG=$tag" >> "$GITHUB_ENV"
56+
echo "tag=$tag" >> "$GITHUB_OUTPUT"
5457
55-
- name: Create draft release (fails if tag already exists)
58+
- name: "Create draft release (fails if tag already exists)"
5659
shell: bash
5760
env:
5861
GH_TOKEN: ${{ github.token }}
5962
run: |
6063
set -euo pipefail
6164
62-
tag="${TAG}"
65+
tag="${{ steps.ver.outputs.tag }}"
6366
title="Release ${tag}"
6467
target="${{ inputs.target }}"
6568

.github/actions/run-notebook-test/action.yml

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
name: Run notebook tests in container
2-
description: Execute one or more Jupyter notebooks via nbconvert inside a Docker image (as jovyan), using a glob pattern. Writes output notebooks next to inputs.
2+
description: "Execute one or more Jupyter notebooks via nbconvert inside a Docker image (as jovyan), using a glob pattern. Writes output notebooks next to inputs."
33

44
inputs:
55
image:
6-
description: Full image reference including tag (e.g. ghcr.io/org/repo/image:sha)
6+
description: "Full image reference including tag (e.g. ghcr.io/org/repo/image:sha)"
77
required: true
88
tests_dir:
9-
description: Host directory containing tests (default: tests)
9+
description: "Host directory containing tests (default: tests)"
1010
required: false
11-
default: tests
11+
default: "tests"
1212
pattern:
13-
description: Glob pattern (relative to tests_dir) of notebooks to execute (e.g. test-*.ipynb)
13+
description: "Glob pattern (relative to tests_dir) of notebooks to execute (e.g. test-*.ipynb)"
1414
required: false
1515
default: "test-*.ipynb"
1616
exclude_pattern:
17-
description: Glob pattern (relative to tests_dir) to exclude (e.g. *-output.ipynb)
17+
description: "Glob pattern (relative to tests_dir) to exclude (e.g. *-output.ipynb)"
1818
required: false
1919
default: "*-output.ipynb"
2020
output_suffix:
21-
description: Suffix inserted before .ipynb for outputs (default: -output)
21+
description: "Suffix inserted before .ipynb for outputs (default: -output)"
2222
required: false
2323
default: "-output"
2424
fail_fast:
25-
description: Stop on first failing notebook (true/false)
25+
description: "Stop on first failing notebook (true/false)"
2626
required: false
2727
default: "true"
2828
earthdata_user:
29-
description: NASA Earthdata username (optional)
29+
description: "NASA Earthdata username (optional)"
3030
required: false
3131
default: ""
3232
earthdata_pass:
33-
description: NASA Earthdata password (optional)
33+
description: "NASA Earthdata password (optional)"
3434
required: false
3535
default: ""
3636
netrc_machine:
37-
description: Machine entry for .netrc (default: urs.earthdata.nasa.gov)
37+
description: "Machine entry for .netrc (default: urs.earthdata.nasa.gov)"
3838
required: false
39-
default: urs.earthdata.nasa.gov
39+
default: "urs.earthdata.nasa.gov"
4040

4141
runs:
4242
using: composite
@@ -75,17 +75,14 @@ runs:
7575
7676
cd "${TESTS_DIR}"
7777
78-
# Build list based on pattern, excluding outputs (and any exclude pattern)
7978
notebooks=( $PATTERN )
8079
if [ ${#notebooks[@]} -eq 0 ]; then
8180
echo "::error::No notebooks matched ${TESTS_DIR}/${PATTERN}"
8281
exit 1
8382
fi
8483
85-
# Apply exclusion
8684
filtered=()
8785
for nb in "${notebooks[@]}"; do
88-
# Exclude by glob
8986
if [[ "$nb" == $EXCLUDE ]]; then
9087
continue
9188
fi
@@ -105,16 +102,11 @@ runs:
105102
for nb in "${filtered[@]}"; do
106103
base="${nb%.ipynb}"
107104
out="${base}${SUFFIX}.ipynb"
105+
108106
echo "------------------------------------------------------------"
109107
echo "Running: ${TESTS_DIR}/${nb}"
110108
echo "Output: ${TESTS_DIR}/${out}"
111109
112-
# Run inside container; mount tests dir at /tests
113-
if ! docker run --rm \
114-
-v "$PWD/.. /__dummy__" >/dev/null 2>&1; then
115-
: # no-op; just to keep shellcheck calm (we don't use shellcheck here)
116-
fi
117-
118110
if ! docker run --rm \
119111
-v "$(pwd -P):/tests" \
120112
"${IMAGE}" \

.github/actions/validate-packages/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Validate packages in container
2-
description: Extract pinned Python/R package lists from a Docker image and run repo validation scripts, producing reproducibility/build.log.
1+
name: "Validate packages in container"
2+
description: "Extract pinned Python/R package lists from a Docker image and run repo validation scripts, producing reproducibility/build.log."
33

44
inputs:
55
image:
6-
description: Full image reference including tag (e.g. ghcr.io/org/repo/image:sha)
6+
description: "Full image reference including tag (e.g. ghcr.io/org/repo/image:sha)"
77
required: true
88
repo_root_mount:
9-
description: Host repo mount path inside container (default: /repo)
9+
description: "Host repo mount path inside container (default: /repo)"
1010
required: false
11-
default: /repo
11+
default: "/repo"
1212
python_version:
13-
description: Python version for running validation scripts on the runner
13+
description: "Python version for running validation scripts on the runner"
1414
required: false
1515
default: "3.11"
1616

@@ -96,3 +96,4 @@ runs:
9696
else
9797
echo "⚠️ validation_status=failed" | tee -a "$GITHUB_STEP_SUMMARY"
9898
fi
99+

0 commit comments

Comments
 (0)