From 401445ab2d746fd66eb99f8ec21a2ef41efe914a Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Tue, 11 Jun 2024 13:03:04 -0400 Subject: [PATCH] automerge: use changed-files action The existing action spews some deprecation warnings, better to switch to something well maintained. --- .github/workflows/automerge.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml index ded92fa..d40ee16 100644 --- a/.github/workflows/automerge.yaml +++ b/.github/workflows/automerge.yaml @@ -30,7 +30,7 @@ jobs: fetch-depth: 0 - name: List changed files id: files - uses: jitterbit/get-changed-files@v1 + uses: tj-actions/changed-files@v44 # The next steps tries to reproduce the steps taken to generate the # files. We restore the changed files to their original state on the # default branch, run the commands to regenerate the change, and verify @@ -38,7 +38,7 @@ jobs: - name: Regenerate the patch run: | set -euxo pipefail - for changed_file in ${{ steps.files.outputs.all }}; do + for changed_file in ${{ steps.files.outputs.all_changed_files }}; do version="$(grep 'version "' "$changed_file" | cut -d'"' -f2)" git checkout origin/master -- "$changed_file" git restore --staged "$changed_file"