File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3838
3939 - name : Run pattern.sh script
4040 run : |
41+ export TARGET_BRANCH=main
4142 ./scripts/pattern-util.sh make validate-origin
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ TARGET_ORIGIN ?= origin
1818# This is because we expect to use tokens for repo authentication as opposed to SSH keys
1919TARGET_REPO =$(shell git ls-remote --get-url --symref $(TARGET_ORIGIN ) | sed -e 's/.* URL:[[:space:]]* //' -e 's% ^git@%% ' -e 's% ^https://%% ' -e 's% :% /% ' -e 's% ^% https://% ')
2020# git branch --show-current is also available as of git 2.22, but we will use this for compatibility
21- TARGET_BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
21+ TARGET_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
2222
2323UUID_FILE ?= ~/.config/validated-patterns/pattern-uuid
2424UUID_HELM_OPTS ?=
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ podman run -it --rm --pull=newer \
8888 -e EXTRA_PLAYBOOK_OPTS \
8989 -e TARGET_ORIGIN \
9090 -e TARGET_SITE \
91+ -e TARGET_BRANCH \
9192 -e NAME \
9293 -e TOKEN_SECRET \
9394 -e TOKEN_NAMESPACE \
You can’t perform that action at this time.
0 commit comments