Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix in checking the environment variable for workflow type
Browse files Browse the repository at this point in the history
meyrevived authored Jan 1, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f31f467 commit 9ebe2ef
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
@@ -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
@@ -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}"
@@ -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')

0 comments on commit 9ebe2ef

Please sign in to comment.