forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 937 Bytes
/
ci.yaml
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
---
name: PR - Commit Parity
'on':
pull_request:
branches:
- main
- dev
- petermetz/**
push:
branches:
- main
- dev
jobs:
pr-commit-parity:
name: PR and Commit messages Parity
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Execute script
id: execute-script
env:
GITHUB_REPO: ${{ github.repository }}
PULL_REQ_URL: ${{ github.event.pull_request.url }}
PULL_REQ_TITLE: ${{ github.event.pull_request.title }}
PULL_REQ_BODY: ${{ github.event.pull_request.body }}
run: |
PR_COMMIT_PARITY_OUTPUT=$(./tools/pr-commit-parity.sh "$GITHUB_REPO" "$PULL_REQ_URL" "$PULL_REQ_TITLE" "$PULL_REQ_BODY")
echo "PR_COMMIT_PARITY_OUTPUT=$PR_COMMIT_PARITY_OUTPUT" >> "$GITHUB_OUTPUT"
- name: List output
run: echo "The output is ${{ steps.execute-script.outputs.PR_COMMIT_PARITY_OUTPUT }}"