Skip to content

Commit

Permalink
Merge pull request #657 from naher94/version-check-action
Browse files Browse the repository at this point in the history
Update version-check.yml
  • Loading branch information
naher94 authored Feb 13, 2024
2 parents cf2fa05 + acc259a commit 08339b3
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ on:
- '**/*' # This triggers the workflow for any file changes

jobs:
print-changes:
runs-on: ubuntu-latest

build:
runs-on: ubuntu-latest # windows-latest | macos-latest
name: Test changed-files
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.

- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]

- name: Print Changed Files
- name: List all changed files
run: |
echo "Changed Files 122:"
git diff --name-only ${{ github.base_ref }}..${{ github.head_ref }}
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done

0 comments on commit 08339b3

Please sign in to comment.