You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_BASEIMAGE_ALPINE_NGINX_3.9 }}" ]; then
16
+
echo "Github secret PAUSE_EXTERNAL_TRIGGER_BASEIMAGE_ALPINE_NGINX_3.9 is set; skipping trigger."
17
+
exit 0
18
+
fi
19
+
echo "External trigger running off of 3.9 branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_BASEIMAGE_ALPINE_NGINX_3.9\"."
for br in $(git for-each-ref --format='%(refname:short)' refs/remotes)
21
+
do
22
+
br=$(echo "$br" | sed 's|origin/||g')
23
+
echo "Evaluating branch ${br}"
24
+
ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/jenkins-vars.yml \
25
+
| docker run --rm -i --entrypoint yq ghcr.io/linuxserver/yq -r .ls_branch)
26
+
if [ "$br" == "$ls_branch" ]; then
27
+
echo "${br} is a live branch, checking workflow."
28
+
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then
29
+
echo "Workflow exists. Triggering external trigger workflow for branch ${br}."
for br in $(git for-each-ref --format='%(refname:short)' refs/remotes)
21
+
do
22
+
br=$(echo "$br" | sed 's|origin/||g')
23
+
echo "Evaluating branch ${br}"
24
+
ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/jenkins-vars.yml \
25
+
| docker run --rm -i --entrypoint yq ghcr.io/linuxserver/yq -r .ls_branch)
26
+
if [ "${br}" == "${ls_branch}" ]; then
27
+
echo "Branch ${br} appears to be live; triggering."
28
+
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/.github/workflows/package_trigger.yml > /dev/null 2>&1; then
29
+
echo "Workflow exists. Triggering package trigger workflow for branch ${br}."
0 commit comments