Skip to content

Update pr-convention.yml #15

Update pr-convention.yml

Update pr-convention.yml #15

Workflow file for this run

name: Pull Request Changes
on:
pull_request:
paths:
- '**/*'
jobs:
find_changes:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: List changed files
run: |
echo "Changed files:"
git diff --name-only ${{ github.event.before }} ${{ github.sha }}
- name: Set output
id: set_output
run: echo "::set-output name=changed_files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})"
print_changes:
needs: find_changes
runs-on: ubuntu-latest
steps:
- name: Print changed files
run: echo "Changed files: ${{ needs.find_changes.outputs.changed_files }}"

Check failure on line 30 in .github/workflows/pr-convention.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-convention.yml

Invalid workflow file

You have an error in your yaml syntax on line 30