Skip to content

Commit

Permalink
simplify restyler
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Dec 12, 2024
1 parent 0f5adb1 commit f4699ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/eslint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Configure git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
- name: Set up Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -27,14 +22,3 @@ jobs:
id: eslint
run: |
npx eslint .
# This step will fail when running with ACT
- name: Generate git am command
if: failure()
run: |
npx eslint . --fix
git add .
git commit -m "ESLint fixes"
git format-patch -1 HEAD --stdout | base64 > patch.base64
echo "Run the following command locally to apply the fixes:"
echo "base64 -d patch.base64 | git am"
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ async function run()
const data = await readFileAsync(filePath, 'utf8');
jsonData = JSON.parse(data);
}
catch (error) {
catch (error)
{
core.setFailed(`Action failed with error: ${error}`);
console.error('Error reading or parsing JSON file:', error);
}
Expand Down

0 comments on commit f4699ce

Please sign in to comment.