diff --git a/.github/workflows/coding_convention.yaml b/.github/workflows/coding_convention.yaml index bdd5b3c2..100a32de 100644 --- a/.github/workflows/coding_convention.yaml +++ b/.github/workflows/coding_convention.yaml @@ -1,12 +1,9 @@ -name: Coding Convention Manual +name: Coding Convention on: - workflow_dispatch: - inputs: - branch: - description: 'Branch to test' - type: string - default: 'iec_efr32' + push: + branches-ignore: + - update-workflows env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} REPO_LINK: https://github.com/${{ github.repository }}.git @@ -17,8 +14,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - name: Install python3.11 if: always() run: | diff --git a/.github/workflows/coding_convention_manual.yaml b/.github/workflows/coding_convention_manual.yaml index 100a32de..bdd5b3c2 100644 --- a/.github/workflows/coding_convention_manual.yaml +++ b/.github/workflows/coding_convention_manual.yaml @@ -1,9 +1,12 @@ -name: Coding Convention +name: Coding Convention Manual on: - push: - branches-ignore: - - update-workflows + workflow_dispatch: + inputs: + branch: + description: 'Branch to test' + type: string + default: 'iec_efr32' env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} REPO_LINK: https://github.com/${{ github.repository }}.git @@ -14,6 +17,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4.1.7 + with: + ref: "${{ github.event.inputs.branch }}" - name: Install python3.11 if: always() run: |