Skip to content

Commit

Permalink
Create action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypeeig authored Jan 10, 2025
1 parent 0d1e45f commit d5e4f8e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/actions/files/check-affected/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check Affected Files
description: This action checks the affected files by comparing the current commit with the previous commit.
inputs:
commit_ref:
description: The commit reference to compare against.
required: false
default: 'HEAD^1'
runs:
using: 'composite'
steps:
- name: Get affected files
id: get_diff
shell: bash
run: |
echo "Fetching affected files..."
files=$(git diff --name-only ${{ inputs.commit_ref }} HEAD)
echo "Affected files: $files"

0 comments on commit d5e4f8e

Please sign in to comment.