The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add validation for source branch in backport workflow (#14042)
comfyanonymous8fecef068627
diff --git a/.github/workflows/backport_release.yaml b/.github/workflows/backport_release.yamlindex b28d62656..03788dd48 100644--- a/.github/workflows/backport_release.yaml+++ b/.github/workflows/backport_release.yaml@@ -42,8 +42,13 @@ jobs:- name: Validate source branch existsenv:SOURCE_BRANCH: ${{ inputs.branch }}+ DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}run: |set -euo pipefail+ if [[ "${SOURCE_BRANCH}" == "${DEFAULT_BRANCH}" ]]; then+ echo "::error::Source branch must not be the default branch ('${DEFAULT_BRANCH}')."+ exit 1+ figit fetch origin "refs/heads/${SOURCE_BRANCH}:refs/remotes/origin/${SOURCE_BRANCH}"if ! git show-ref --verify --quiet "refs/remotes/origin/${SOURCE_BRANCH}"; thenecho "::error::Source branch '${SOURCE_BRANCH}' not found on origin."