Skip to content

Commit

Permalink
SYS-164 added workflow to run linter and trigger smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TieDyedSheep committed May 15, 2024
1 parent 3c197f2 commit 9452be8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,23 @@ jobs:
echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
fi
# Determine the repository name, prioritize the secret if it exists
if [ -n "${{ vars.REPO_NAME }}" ]; then
REPO_NAME=${{ vars.REPO_NAME }}
else
REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)
fi
# Capitalize the repository name
REPO_NAME_CAPITALIZED=$(echo "${REPO_NAME:0:1}" | tr '[:lower:]' '[:upper:]')${REPO_NAME:1}
# Export the environment variables
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
echo "REPO_NAME=${REPO_NAME_CAPITALIZED}" >> $GITHUB_ENV
- name: Trigger Jenkins Job
env:
BRANCH_NAME: ${{ env.BRANCH_NAME }}
REPO_NAME: ${{ vars.REPO_NAME }}
REPO_NAME: ${{ env.REPO_NAME }}
JENKINS_URL: ${{ vars.JENKINS_URL }}
JENKINS_JOB_SMOKE: ${{ vars.JENKINS_JOB_SMOKE }}
run: |
Expand Down

0 comments on commit 9452be8

Please sign in to comment.