Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Oct 26, 2023
1 parent 7e35778 commit c62d03c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:

- name: Create list of changed files
run: |
# See https://github.community/t/check-pushed-file-changes-with-git-diff-tree-in-github-actions/17220/10
echo "github.event_name is ${{ github.event_name }}"
if [ "${{ github.event_name }}" = "pull_request" ]; then
# Pull Request
echo "Pull Request"
git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1
export DIFF=$( git diff --name-only ${{ github.event.pull_request.base.ref }} $GITHUB_SHA )
echo "Diff between origin/${{ github.event.pull_request.base.ref }} and $GITHUB_SHA"
else
# Push
echo "Push"
git fetch origin ${{ github.event.before }} --depth=1
export DIFF=$( git diff --name-only ${{ github.event.before }} $GITHUB_SHA )
echo "Diff between ${{ github.event.before }} and $GITHUB_SHA"
Expand Down

0 comments on commit c62d03c

Please sign in to comment.