TESTING #64
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: 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: Generate commit messages | |
id: commit-messages | |
uses: tylermilner/commit-messages-between-commits-action@v1 | |
with: | |
begin-sha: ${{ github.event.pull_request.base.sha }} | |
commit-messages-file: commit-messages.txt | |
- name: Use commit messages | |
run: | | |
echo "Commit messages:" | |
cat commit-messages.txt | |
- name: Execute script | |
id: execute-script | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
PR_BODY: ${{ github.event.pull_request.body }} | |
run: | | |
PR_COMMIT_PARITY_OUTPUT=$(./tools/pr-commit-parity.sh "$PR_TITLE" "$PR_BODY" "$PR_BODY") | |
echo "$PR_COMMIT_PARITY_OUTPUT" >> "$GITHUB_OUTPUT" | |
- name: See script output | |
run: | | |
echo "${{ steps.pr-commit-parity.outputs.PR_COMMIT_PARITY_OUTPUT }}" |