All checks were successful
CD / Release (push) Successful in 2m43s
Reviewed-on: #20 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
17 lines
423 B
YAML
17 lines
423 B
YAML
name: Get repo name
|
|
description: Outputs the repository name without the owner (e.g. "owner/repo" → "repo")
|
|
|
|
outputs:
|
|
name:
|
|
description: The repository name without the owner
|
|
value: ${{ steps.repo-name.outputs.name }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: repo-name
|
|
shell: bash
|
|
run: |
|
|
REPO="${GITEA_REPOSITORY:-$GITHUB_REPOSITORY}"
|
|
echo "name=${REPO##*/}" >> $GITHUB_OUTPUT
|