Skip to content

Commit a4ef7cd

Browse files
committed
style: Prepend "slicer_" prefix to workflow inputs "repository" and "ref"
1 parent 43f3d2e commit a4ef7cd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/doxygen-build-and-publish.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
# Allows running this workflow manually from the Actions tab
55
workflow_dispatch:
66
inputs:
7-
repository:
8-
description: "Slicer repository for which to build and publish the documentation"
7+
slicer_repository:
8+
description: "Slicer Repository for which to build and publish the documentation"
99
default: Slicer/Slicer
10-
ref:
11-
description: "Slicer branch or tag for which to build and publish the documentation"
10+
slicer_ref:
11+
description: "Slicer Branch or tag for which to build and publish the documentation"
1212
default: main
1313

1414
permissions:
@@ -24,22 +24,22 @@ jobs:
2424
run: |
2525
echo "EVENT_NAME [$EVENT_NAME]"
2626
if [[ "$EVENT_NAME" == "workflow_dispatch" ]]; then
27-
repository=${{ github.event.inputs.repository }}
28-
ref=${{ github.event.inputs.ref }}
27+
slicer_repository=${{ github.event.inputs.slicer_repository }}
28+
slicer_ref=${{ github.event.inputs.slicer_ref }}
2929
else
3030
echo "::error ::Unsupported EVENT_NAME [$EVENT_NAME]"
3131
exit 1
3232
fi
33-
echo "repository=$repository" >> $GITHUB_OUTPUT
34-
echo "ref=$ref" >> $GITHUB_OUTPUT
33+
echo "slicer_repository=$slicer_repository" >> $GITHUB_OUTPUT
34+
echo "slicer_ref=$slicer_ref" >> $GITHUB_OUTPUT
3535
env:
3636
EVENT_NAME: ${{ github.event_name }}
3737

3838
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3939
with:
40-
repository: ${{ steps.collect_inputs.outputs.repository }}
40+
repository: ${{ steps.collect_inputs.outputs.slicer_repository }}
4141
path: Slicer
42-
ref: ${{ steps.collect_inputs.outputs.ref }}
42+
ref: ${{ steps.collect_inputs.outputs.slicer_ref }}
4343

4444
- name: Determine if ref is branch or tag
4545
id: determine
@@ -74,7 +74,7 @@ jobs:
7474
7575
fi
7676
env:
77-
SLICER_REPO_REF: ${{ steps.collect_inputs.outputs.ref }}
77+
SLICER_REPO_REF: ${{ steps.collect_inputs.outputs.slicer_ref }}
7878

7979
- uses: ssciwr/doxygen-install@527824132256e685f03ec80c0851fe79937eb1d6 # v1.6.3
8080
with:
@@ -211,7 +211,7 @@ jobs:
211211
PUBLISH_GITHUB_PROJECT_NAME: apidocs.slicer.org
212212
PUBLISH_GITHUB_USERNAME: ${{ steps.committer.outputs.committer-name }}
213213
PUBLISH_GITHUB_USERMAIL: ${{ steps.committer.outputs.committer-email }}
214-
SLICER_REPO_NAME: ${{ steps.collect_inputs.outputs.repository }}
214+
SLICER_REPO_NAME: ${{ steps.collect_inputs.outputs.slicer_repository }}
215215
SLICER_REPO_BRANCH: ${{ steps.determine.outputs.slicer_repo_branch }}
216216
SLICER_REPO_TAG: ${{ steps.determine.outputs.slicer_repo_tag }}
217217

0 commit comments

Comments
 (0)