Skip to content

Commit

Permalink
Merge pull request #375 from meyrevived/KFLUXINFRA-1064_one_testing_p…
Browse files Browse the repository at this point in the history
…hase_to_rule_them_all

Bug fix in checking the environment variable for workflow type
  • Loading branch information
ifireball authored Jan 2, 2025
2 parents 83855df + 744a66f commit 0f40fbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mpc-test-sealights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
echo "Invalid context for this workflow run. Exiting."
exit 1
- name: Check out pull request head code - on pull_request event
if: ${{env.on-event}} == "pull_request"
if: ${{env.on-event == "pull_request"}}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Check out main code - on push event
if: ${{env.on-event}} == "push"
if: ${{env.on-event == "push"}}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
Expand All @@ -71,7 +71,7 @@ jobs:
echo "[Sealights] Initiating the SeaLights agent to Goland and handing it the token"
./slcli config init --lang go --token ./sltoken.txt
- name: Configuring SeaLights - on pull_request event
if: ${{env.on-event}} == "pull_request"
if: ${{env.on-event == "pull_request"}}
run: |
echo "[Sealights] Configuring SeaLights to scan the pull request branch"
echo "Latest commit sha: ${LATEST_COMMIT_SHA}"
Expand All @@ -81,7 +81,7 @@ jobs:
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
LATEST_COMMIT_SHA: ${{github.event.pull_request.head.sha}}
- name: Configuring SeaLights - on push event
if: ${{env.on-event}} == "push"
if: ${{env.on-event == "push"}}
run: |
echo "[Sealights] Configuring SeaLights to scan the main branch after pull request was closed"
./slcli config create-bsid --app multi-platform-controller --branch main --build multi-platform-controller-main-$(date +'%Y.%m.%d_%H:%M')
Expand Down

0 comments on commit 0f40fbb

Please sign in to comment.