Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Jul 1, 2024
1 parent f4b19ba commit b3b905f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/validate-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Get changes
id: get-changes
run: echo "files=$(git diff --name-only HEAD^ | xargs)" >> $GITHUB_OUTPUT
run: |
git remote add -f upstream https://github.com/Kometa-Team/Kometa.git
git remote update
if [[ ${{ github.event.action }} == "labeled" ]]; then
echo "files=$(git diff --name-only upstream/nightly HEAD | xargs)" >> $GITHUB_OUTPUT
else
echo "files=$(git diff --name-only HEAD^ | xargs)" >> $GITHUB_OUTPUT
fi
- name: List changed files
id: list-changes
Expand Down

0 comments on commit b3b905f

Please sign in to comment.