Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,26 @@ on:
types: [ synchronize, opened, reopened, ready_for_review ]

jobs:
run:
if: github.event.pull_request.draft == false
name: Run something
changed_files:
# NOTE:
# - This is limited to pull_request* events and would raise an error for other events.
# - A maximum of 3000 files can be returned.
# - For more flexibility and no limitations see "Using local .git directory" above.

runs-on: ubuntu-latest
name: Test changed-files
permissions:
pull-requests: read

steps:
- uses: actions/checkout@v2

- name: Show diff
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44

- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
git show --pretty=format:'' --name-only ${{ github.ref }}
git show --pretty=format:'' --name-only ${{ github.sha }}

for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
1 change: 1 addition & 0 deletions teste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
testeeee