Skip to content

Commit

Permalink
feat(submoduels): add optional submodules input for the release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
LiyangW committed Oct 29, 2024
1 parent b245e65 commit d4b258c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ on:
required: false
default: 0
type: number
submodules:
description: "How to handle submodules in checkout (recursive, true, or false)"
required: false
type: string
default: "recursive"
secrets:
GH_TOKEN:
required: false
Expand Down Expand Up @@ -135,13 +140,13 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
submodules: recursive
submodules: ${{ inputs.submodules }}
ref: ${{ steps.latest-release.outputs.tag_name }}
if: ${{ github.event_name == 'schedule' }}
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
submodules: recursive
submodules: ${{ inputs.submodules }}
if: ${{ github.event_name != 'schedule' }}

- name: Set up Docker Buildx
Expand Down

0 comments on commit d4b258c

Please sign in to comment.