feat: add reusable authenticated checkout workflow #2

Open
opened 2026-07-10 07:13:56 +00:00 by tsieprawski · 0 comments
Owner

Research from #1 shows the same manual clone/fetch/checkout flow repeated across multiple repos and workflows.

Representative examples:

  • backup-orchestrator/.forgejo/workflows/check.yaml
  • ets-services/.forgejo/workflows/test-integration-openwebui.yaml
  • enslavethemstars.pl-rider/.forgejo/workflows/build.yaml
  • enslavethemstars.pl-htdocs/.forgejo/workflows/deploy-staging.yaml
  • docker-services/.forgejo/workflows/build.yaml

Proposed scope:

  • create a reusable Forgejo workflow for authenticated checkout from the current repo
  • support checkout by SHA/ref
  • support optional submodule init
  • support configurable target directory
  • support the current in-house HTTPS credential pattern

Goal:
Remove repeated inline git clone, git fetch, and git checkout logic from caller workflows.

Research from #1 shows the same manual clone/fetch/checkout flow repeated across multiple repos and workflows. Representative examples: - backup-orchestrator/.forgejo/workflows/check.yaml - ets-services/.forgejo/workflows/test-integration-openwebui.yaml - enslavethemstars.pl-rider/.forgejo/workflows/build.yaml - enslavethemstars.pl-htdocs/.forgejo/workflows/deploy-staging.yaml - docker-services/.forgejo/workflows/build.yaml Proposed scope: - create a reusable Forgejo workflow for authenticated checkout from the current repo - support checkout by SHA/ref - support optional submodule init - support configurable target directory - support the current in-house HTTPS credential pattern Goal: Remove repeated inline git clone, git fetch, and git checkout logic from caller workflows.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tsieprawski/forgejo-actions#2
No description provided.