fix missing quotes

This commit is contained in:
aptalca 2020-11-11 18:24:24 -05:00
parent 0191831883
commit 4bbe22286b
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ jobs:
- name: External Trigger
if: github.ref == 'refs/heads/master'
run: |
if [ -n ${{ secrets.PAUSE_EXTERNAL_TRIGGER_JENKINS_BUILDER_MASTER }} ]; then
if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_JENKINS_BUILDER_MASTER }}" ]; then
echo "Github secret PAUSE_EXTERNAL_TRIGGER_JENKINS_BUILDER_MASTER is set; skipping trigger."
exit 0
fi

View File

@ -12,7 +12,7 @@ jobs:
- name: Package Trigger
if: github.ref == 'refs/heads/master'
run: |
if [ -n ${{ secrets.PAUSE_PACKAGE_TRIGGER_JENKINS_BUILDER_MASTER }} ]; then
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_JENKINS_BUILDER_MASTER }}" ]; then
echo "Github secret PAUSE_PACKAGE_TRIGGER_JENKINS_BUILDER_MASTER is set; skipping trigger."
exit 0
fi

View File

@ -12,7 +12,7 @@ jobs:
- name: External Trigger
if: github.ref == 'refs/heads/{{ ls_branch }}'
run: |
if [ -n ${{ '{{' }} secrets.PAUSE_EXTERNAL_TRIGGER_{{ project_name|regex_replace('-','_')|upper }}_{{ ls_branch|regex_replace('-','_')|upper }} {{ '}}' }} ]; then
if [ -n "${{ '{{' }} secrets.PAUSE_EXTERNAL_TRIGGER_{{ project_name|regex_replace('-','_')|upper }}_{{ ls_branch|regex_replace('-','_')|upper }} {{ '}}' }}" ]; then
echo "Github secret PAUSE_EXTERNAL_TRIGGER_{{ project_name|regex_replace('-','_')|upper }}_{{ ls_branch|regex_replace('-','_')|upper }} is set; skipping trigger."
exit 0
fi

View File

@ -12,7 +12,7 @@ jobs:
- name: Package Trigger
if: github.ref == 'refs/heads/{{ ls_branch }}'
run: |
if [ -n ${{ '{{' }} secrets.PAUSE_PACKAGE_TRIGGER_{{ project_name|regex_replace('-','_')|upper }}_{{ ls_branch|regex_replace('-','_')|upper }} {{ '}}' }} ]; then
if [ -n "${{ '{{' }} secrets.PAUSE_PACKAGE_TRIGGER_{{ project_name|regex_replace('-','_')|upper }}_{{ ls_branch|regex_replace('-','_')|upper }} {{ '}}' }}" ]; then
echo "Github secret PAUSE_PACKAGE_TRIGGER_{{ project_name|regex_replace('-','_')|upper }}_{{ ls_branch|regex_replace('-','_')|upper }} is set; skipping trigger."
exit 0
fi