This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Workflow run for refs/pull/19/merge #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- open | |
- 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: Run test case when raised a PR | |
run: | | |
cd ./jdbc-connector | |
mvn clean install |