Skip to content

Commit

Permalink
feat(workflow): skip the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-a committed Apr 4, 2024
1 parent 0f31969 commit ed3c12b
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/combined-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ jobs:
- name: Apply OpenRewrite recipes
run: mvn --activate-profiles openrewrite org.openrewrite.maven:rewrite-maven-plugin:run

# Capture the diff
- name: Create patch
run: |
git diff | tee git-diff.patch
# Download the patch
- name: Apply patch
run: |
git apply git-diff.patch --allow-empty
rm git-diff.patch
# Download the PR number
- uses: actions/download-artifact@v4
with:
Expand All @@ -82,20 +71,8 @@ jobs:
reviewdog_flags: tee

# now let's try the same thing with google code suggester
# Download the patch
- uses: actions/download-artifact@v4
with:
name: patch
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Apply patch
run: |
git apply git-diff_combined.patch --allow-empty
rm git-diff_combined.patch
- uses: googleapis/code-suggester@v4
with:
command: review
pull_number: ${{ env.PR_NUMBER }}
git_dir: '.'

git_dir: '.'

0 comments on commit ed3c12b

Please sign in to comment.