mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 21:50:59 -05:00
fixed them cases
This commit is contained in:
parent
c15b7e6808
commit
c03d109494
4 changed files with 72 additions and 4 deletions
42
.automation/test/ansible/ansible_bad_1.yml
Normal file
42
.automation/test/ansible/ansible_bad_1.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
###########################################
|
||||
###########################################
|
||||
#### GitHub Services-Engineering Stack ####
|
||||
#### ####
|
||||
#### GHE Primary HA backup-utils ONLY ####
|
||||
###########################################
|
||||
###########################################
|
||||
|
||||
###############################
|
||||
# Description of the playbook #
|
||||
###############################
|
||||
# description: Builds GHE Primary, HA, and backup-utils.
|
||||
# detailed_description: Builds GHE Primary, HA, and backup-utils.
|
||||
|
||||
######################
|
||||
## Configure GitHub ##
|
||||
######################
|
||||
- hosts: github_primary
|
||||
vars:
|
||||
demo_github_initial_user: "{{ hostvars['localhost'].local_user }}"
|
||||
github_host: "{{ hostvars['github_primary'].ansible_host }}"
|
||||
probot_server_ip: "{{ hostvars['backup-utils'].ansible_host }}"
|
||||
roles:
|
||||
- role: ghe-demo
|
||||
|
||||
##########################################
|
||||
## Run ghe-config-apply for all changes ##
|
||||
##########################################
|
||||
# Due to us hot loading some data into GHE, the final
|
||||
# run of ghe-config-apply hangs and leaves the system in an odd state
|
||||
# The simplist option is to run the process
|
||||
# 1 more time at the end to solve the issue
|
||||
- hosts: github_primary
|
||||
tasks:
|
||||
- block:
|
||||
- name: GHE-Config-Apply
|
||||
include_role:
|
||||
name: ghe-demo
|
||||
tasks_from: ghe-config-apply.yml
|
||||
tags:
|
||||
- github
|
7
.github/workflows/deploy-DEV.yml
vendored
7
.github/workflows/deploy-DEV.yml
vendored
|
@ -53,10 +53,9 @@ jobs:
|
|||
shell: bash
|
||||
run: .automation/upload-docker.sh
|
||||
|
||||
- name: debug
|
||||
run: printenv
|
||||
shell: bash
|
||||
|
||||
#######################
|
||||
# Get the branch name #
|
||||
#######################
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
|
||||
|
|
|
@ -1317,6 +1317,16 @@ TestCodebase()
|
|||
# Example: markdown_good_1.md -> good
|
||||
FILE_STATUS=$(echo "$FILE_NAME" |cut -f2 -d'_')
|
||||
|
||||
#########################################################
|
||||
# If not found, assume it should be linted successfully #
|
||||
#########################################################
|
||||
if [ -z "$FILE_STATUS" ]; then
|
||||
##################################
|
||||
# Set to good for proper linting #
|
||||
##################################
|
||||
FILE_STATUS="good"
|
||||
fi
|
||||
|
||||
##############
|
||||
# File print #
|
||||
##############
|
||||
|
@ -1328,6 +1338,23 @@ TestCodebase()
|
|||
########################
|
||||
LINT_CMD=''
|
||||
|
||||
#######################################
|
||||
# Check if docker and get folder name #
|
||||
#######################################
|
||||
if [[ "$FILE_TYPE" == "DOCKER" ]]; then
|
||||
if [[ "$FILE" == *"good"* ]]; then
|
||||
#############
|
||||
# Good file #
|
||||
#############
|
||||
FILE_STATUS='good'
|
||||
else
|
||||
############
|
||||
# Bad file #
|
||||
############
|
||||
FILE_STATUS='bad'
|
||||
fi
|
||||
fi
|
||||
|
||||
#####################
|
||||
# Check for ansible #
|
||||
#####################
|
||||
|
|
Loading…
Reference in a new issue