feat: add sinusoidal generator and receptor_type attr #16
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: Validate Pull Request | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
env: | ||
LOCAL_PR: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
TEST_TRIGGER: ${{ github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.action == 'reopened'}} | ||
jobs: | ||
isort: | ||
# if PR is external, trigger the tests on push or new PR | ||
if: ${{ !env.LOCAL_PR && env.TEST_TRIGGER }} | ||
Check failure on line 14 in .github/workflows/pull_request.yml GitHub Actions / Validate Pull RequestInvalid workflow file
|
||
uses: ./.github/workflows/isort.yml | ||
black: | ||
if: ${{ !env.LOCAL_PR && env.TEST_TRIGGER }} | ||
uses: ./.github/workflows/black.yml | ||
build: | ||
if: ${{ !env.LOCAL_PR && env.TEST_TRIGGER }} | ||
uses: ./.github/workflows/build.yml | ||
validate-pr-title: | ||
# Trigger only for local PR when PR is edited (title, description, etc.) | ||
if: ${{ env.LOCAL_PR && github.event.action == 'edited' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Conventional Commit Validation | ||
uses: ytanikin/[email protected] | ||
with: | ||
task_types: '["feat","fix","docs","test","ci","refactor","perf","revert"]' | ||
token: ${{ steps.app-token.outputs.token }} |