corrections to branch/repository checkout logic

This commit is contained in:
2025-10-31 11:18:18 -05:00
parent 45643d90f6
commit 79b4bd03c7

View File

@@ -1,10 +1,9 @@
name: Rooted - Base Web Deployment name: Rooted - Base Web Deployment
inputs: inputs:
BRANCH: REPOSITORY:
description: "Branch to deploy for this job" description: "The repository to checkout and build, in format `owner/repository`"
required: false required: true
default: ${{ gitea.ref_name }}
MONGO_URI: MONGO_URI:
description: "MongoDB URI to use for this instance" description: "MongoDB URI to use for this instance"
required: true required: true
@@ -16,6 +15,10 @@ inputs:
description: "NextAuth secret to use for this instance" description: "NextAuth secret to use for this instance"
required: false required: false
default: ${{ secrets.NEXTAUTH_SECRET }} default: ${{ secrets.NEXTAUTH_SECRET }}
BRANCH:
description: "Branch to deploy for this job"
required: false
default: ${{ gitea.ref_name }}
env: env:
MONGO_URI: $INPUT_MONGO_URI MONGO_URI: $INPUT_MONGO_URI
@@ -34,6 +37,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: $REPOSITORY
ref: $BRANCH ref: $BRANCH
- name: Install Dependencies - name: Install Dependencies