fix: gitlab action
diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml
index 89557d0..0ffb5c6 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -68,10 +68,18 @@
run: |
make verify
+ # This step only runs when the event type is a pull_request
- name: Integrate Test
+ if: ${{ github.event_name == 'pull_request' }}
run: |
chmod +x integrate_test.sh && [[ -n "${{github.event.pull_request.head.repo.full_name}}" ]] && [[ -n "${{github.event.pull_request.head.sha}}" ]] && [[ -n "${{github.base_ref}}" ]] && ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}} ${{github.base_ref}}
+ # This step only runs when the event type is a push
+ - name: Integrate Test
+ if: ${{ github.event_name == 'push' }}
+ run: |
+ chmod +x integrate_test.sh && ./integrate_test.sh $GITHUB_REPOSITORY $GITHUB_SHA $GITHUB_BASE_REF
+
- name: Post Coverage
run: bash <(curl -s https://codecov.io/bash)