diff --git a/.github/workflows/build-and-test-arm-pr.yaml b/.github/workflows/build-and-test-arm-pr.yaml index 7bcaf3359e45a..a44cddca4fd65 100644 --- a/.github/workflows/build-and-test-arm-pr.yaml +++ b/.github/workflows/build-and-test-arm-pr.yaml @@ -2,19 +2,24 @@ name: build-and-test-arm-pr on: pull_request: + types: + - opened + - synchronize + - labeled workflow_dispatch: jobs: + prevent-no-label-execution: + uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@tier4/proposal + with: + label: ARM64 + build-and-test-arm: + needs: prevent-no-label-execution + if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} runs-on: [self-hosted, linux, ARM64] container: ros:galactic steps: - - name: Check label - if: ${{ github.event.pull_request && !contains(github.event.pull_request.labels.*.name, 'ARM64') }} - run: | - echo "Please add a proper label to run this workflow." - exit 1 - - name: Checkout repository uses: actions/checkout@v2 with: diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 0aaec95f48364..3a4fc976f75fd 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -12,18 +12,23 @@ on: - "**/*.png" - "**/*.jpg" pull_request_target: + types: + - opened + - synchronize + - labeled workflow_dispatch: jobs: + prevent-no-label-execution: + uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@tier4/proposal + with: + label: documentation + deploy-docs: + needs: prevent-no-label-execution + if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} runs-on: ubuntu-latest steps: - - name: Check label - if: ${{ github.event.pull_request && !contains(github.event.pull_request.labels.*.name, 'documentation') }} - run: | - echo "Please add a proper label to run this workflow." - exit 1 - - name: Checkout repository uses: actions/checkout@v2 with: