summaryrefslogtreecommitdiffstats
path: root/.github/workflows/validate_pr_description.yml
blob: 6bd4877978c42dc652d9267ab661dd108d5d2c16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: PR-description

on:
  pull_request_target:
    types:
      - opened
      - edited

    branches:
      - main
      - stable-*

jobs:
  validate-pr-description:
    runs-on: [ self-hosted, auto-provisioned, build-preset-analytic-node]

    steps:
      - name: Check out the repository
        uses: actions/checkout@v4
        with:
          ref: main

      - name: Use custom PR validation action
        id: validate
        uses: ./.github/actions/validate_pr_description
        with:
          pr_body: "${{ github.event.pull_request.body }}"

      - name: Test output
        if: always()
        run: echo "Result of validation is  ${{ steps.validate.outputs.status }}"
        

      - name: Set status
        if: failure()
        run: echo "Validation failed."