Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Oct 26, 2023
1 parent f4ce56a commit c0a7af9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish
on:
push:
branches:
- "*"
- main
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -31,12 +31,11 @@ jobs:

- name: Create list of changed files
run: |
echo "github.event_name is ${{ github.event_name }}"
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "Pull Request"
git fetch origin ${{ github.event.pull_request.base.sha1 }} --depth=1
export DIFF=$( git diff --name-only ${{ github.event.pull_request.base.sha1 }} $GITHUB_SHA )
echo "Diff between origin/${{ github.event.pull_request.base.sha1 }} and $GITHUB_SHA"
git fetch origin ${{ github.event.pull_request.base.sha }} --depth=1
export DIFF=$( git diff --name-only ${{ github.event.pull_request.base.sha }} $GITHUB_SHA )
echo "Diff between origin/${{ github.event.pull_request.base.sha }} and $GITHUB_SHA"
else
echo "Push"
git fetch origin ${{ github.event.before }} --depth=1
Expand Down

0 comments on commit c0a7af9

Please sign in to comment.