File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
6262 gh_set_output tags "type=ref,event=pr"
6363 gh_set_output images "ghcr.io/automattic/jetpack-monorepo"
64+ elif [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
65+ if [[ "$GITHUB_REF" == "refs/heads/trunk" ]]; then
66+ gh_set_output tags "type=raw,latest"
67+ gh_set_output images $'automattic/jetpack-wordpress-dev\nghcr.io/automattic/jetpack-wordpress-dev'
68+ else
69+ echo "Workflow dispatch for non-trunk ref $GITHUB_REF is not supported"
70+ exit 1
71+ fi
6472 else
6573 echo "Unknown GITHUB_EVENT_NAME $GITHUB_EVENT_NAME"
6674 exit 1
Original file line number Diff line number Diff line change 6363 elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
6464 gh_set_output tags "type=ref,event=pr"
6565 gh_set_output images "ghcr.io/automattic/jetpack-wordpress-dev"
66+ elif [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
67+ if [[ "$GITHUB_REF" == "refs/heads/trunk" ]]; then
68+ gh_set_output tags "type=raw,latest"
69+ gh_set_output images $'automattic/jetpack-wordpress-dev\nghcr.io/automattic/jetpack-wordpress-dev'
70+ else
71+ echo "Workflow dispatch for non-trunk ref $GITHUB_REF is not supported"
72+ exit 1
73+ fi
6674 else
6775 echo "Unknown GITHUB_EVENT_NAME $GITHUB_EVENT_NAME"
6876 exit 1
You can’t perform that action at this time.
0 commit comments