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 ade1042 commit 3fbd2fc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set Branch Name
id: vars
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
fi
- name: Trigger Jenkins Job
env:
BRANCH_NAME: ${{ github.ref_name }}
run: |
curl -f -X POST "${{ secrets.JENKINS_URL }}/job/${{ secrets.JENKINS_JOB_NAME_SMOKE_10_X_10 }}/buildWithParameters?SPECIFY_SHARDUS_TYPES_BRANCH=true&SHARDUS_TYPES_BRANCH=${{ github.ref_name }}" \
curl -f -X POST "${{ secrets.JENKINS_URL }}/job/${{ secrets.JENKINS_JOB_NAME_SMOKE_10_X_10 }}/buildWithParameters?SPECIFY_SHARDUS_TYPES_BRANCH=true&SHARDUS_TYPES_BRANCH=${BRANCH_NAME}" \
--user "${{ secrets.JENKINS_API_CREDS }}"

0 comments on commit 3fbd2fc

Please sign in to comment.