Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Workflow run for refs/pull/19/merge #6

Workflow run for refs/pull/19/merge

Workflow run for refs/pull/19/merge #6

name: Obsrv Connectors build and deploy workflow
run-name: Workflow run for ${{ github.ref }}
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
aws-deploy:
type: boolean
required: true
default: false
pull_request:
types:
- opened
- synchronize
jobs:
check-tag:
runs-on: ubuntu-latest
outputs:
ALLOWED_TAG: ${{ steps.tag-checker.outputs.TRIGGER_ALLOWED }}
steps:
- name: Check if tag is one in list of current releases
id: tag-checker
run: |
(echo -n TRIGGER_ALLOWED= && echo 'print("${{ github.ref_name }}".split("_")[0]
not in "${{ vars.CURRENT_RELEASE }}")' | python3) >> "$GITHUB_OUTPUT"
run-test-cases:
runs-on: ubuntu-latest
needs: check-tag
if: needs.check-tag.outputs.ALLOWED_TAG == 'True' && github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Clone obsrv core repository
uses: actions/checkout@v3
with:
repository: Sanketika-Obsrv/obsrv-core
path: obsrv-connectors/obsrv-core
ref: 1.0.2-GA-Bugfixes
- name: Run test case when raised a PR
run: |
cd ./obsrv-core
pwd
cd ./jdbc-connector
mvn clean install