Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Jun 17, 2024
1 parent 6f761e0 commit 1f3c52e
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
version: 2.17.0
files: all
reporter: github-pr-check
filter_mode: nofilter

- name: Install jq
run: sudo apt-get install -y jq
Expand All @@ -51,43 +50,3 @@ jobs:
echo "Vale outputs:"
ls -l
- name: Simulate Vale changes
run: |
mkdir -p simulated_changes
for file in $(echo ${{ steps.changed-files.outputs.files }} | jq -r '.[]'); do
cp "$file" "simulated_changes/$(basename "$file")"
vale --output=edit "simulated_changes/$(basename "$file")"
done
- name: Upload Vale results
uses: actions/upload-artifact@v3
with:
name: vale-results
path: '*.json'

- name: Upload simulated changes
uses: actions/upload-artifact@v3
with:
name: simulated-changes
path: simulated_changes

suggest:
runs-on: ubuntu-latest
needs: vale # This ensures the suggest job runs after the vale job

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download simulated changes
uses: actions/download-artifact@v3
with:
name: simulated-changes

- name: List downloaded files
run: ls -l simulated_changes

- name: Suggest changes
uses: parkerbxyz/suggest-changes@v1
with:
comment: 'Please commit the suggested changes from Vale.'

0 comments on commit 1f3c52e

Please sign in to comment.