update workflow (#2151)

This commit is contained in:
meisnate12 2024-07-01 16:52:45 -04:00 committed by GitHub
parent f4b19bae5f
commit 5047c7a408
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,13 +28,20 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 2 fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }} ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Get changes - name: Get changes
id: 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 - name: List changed files
id: list-changes id: list-changes