Skip to content

Commit

Permalink
automerge: use changed-files action
Browse files Browse the repository at this point in the history
The existing action spews some deprecation warnings, better to switch to
something well maintained.
  • Loading branch information
rail committed Jun 11, 2024
1 parent 8c29bd5 commit b1d9f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ 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
# the result matches the PR contents (git diff does not show any changes).
- 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"
Expand Down

0 comments on commit b1d9f3a

Please sign in to comment.