Test 02 #65
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: 'Check pull request' | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, edited, reopened, synchronize] | |
paths: | |
- 'Roadmap/**' | |
- '!Roadmap/**/*.md' | |
jobs: | |
get-committed-files: | |
name: Get committed files | |
runs-on: ubuntu-latest | |
outputs: | |
committed-files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }} | |
steps: | |
- name: Clone repository to virtual machine | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get committed files of the pull request | |
id: changed-files | |
uses: tj-actions/changed-files@v42 | |
with: | |
separator: '\n' | |
check-committed-files: | |
needs: [get-committed-files] | |
name: Check committed files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository to virtual machine | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Check committed files of the pull request | |
uses: ./.github/actions/pull-requests/check-committed-files | |
with: | |
author: ${{ github.event.pull_request.user.name || github.actor }} | |
committed-files: ${{ needs.get-committed-files.outputs.committed-files }} | |
permissions: | |
pull-requests: read |