GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow dots in repo names in get-repo-info, fix test cleanup of drafts · openlogix/.github@44164f3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • actions-test.yaml
  • actions/get-repo-info
    • action.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/actions-test.yaml‎

Copy file name to clipboardExpand all lines: .github/workflows/actions-test.yaml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ jobs:
412412
--jq '.[].tagName | select(startswith("test-"))' |
413413
while read -r tag; do
414414
echo "Deleting $tag"
415-
gh release delete "$tag" --yes --cleanup-tag
415+
gh release delete "$tag" --yes
416+
# A draft has no tag, so the tag is deleted separately.
417+
gh api -X DELETE "repos/$GH_REPO/git/refs/tags/$tag" 2>/dev/null || true
416418
done
417419
418420
- name: Create the release files
@@ -542,5 +544,7 @@ jobs:
542544
--jq '.[].tagName | select(startswith(env.TAG))' |
543545
while read -r tag; do
544546
echo "Deleting $tag"
545-
gh release delete "$tag" --yes --cleanup-tag
547+
gh release delete "$tag" --yes
548+
# A draft has no tag, so the tag is deleted separately.
549+
gh api -X DELETE "repos/$GH_REPO/git/refs/tags/$tag" 2>/dev/null || true
546550
done
Collapse file

‎actions/get-repo-info/action.yaml‎

Copy file name to clipboardExpand all lines: actions/get-repo-info/action.yaml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ runs:
3737
fi
3838
3939
# Get origin repo name normalized to lower case (e.g. "openlogix/logix-ide")
40+
# Repo names may contain dots (e.g. ".github", "openlogix.github.io").
4041
origin=$(git -C "$repo_dir" remote get-url origin)
41-
if [[ "$origin" =~ ^https://github\.com/([^/]+)/([^/.]+)(\.git)?$ ]]; then
42+
if [[ "${origin%.git}" =~ ^https://github\.com/([^/]+)/([^/]+)$ ]]; then
4243
repo="${BASH_REMATCH[1]}/${BASH_REMATCH[2]}"
4344
else
4445
echo "Error: origin must be https://github.com/owner/repo[.git]: $origin"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.