-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename lint-fixer.yml to code-style.yml
- Loading branch information
1 parent
9cce096
commit 1cf90df
Showing
2 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Code Style | ||
|
||
on: [ push, pull_request ] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Detect job name | ||
id: detect | ||
run: | | ||
[[ ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} ]] && NAME="Fix" || NAME="Check" | ||
echo "name=${NAME}" >> $GITHUB_OUTPUT | ||
- name: ${{ steps.detect.outputs.name }} the code style | ||
uses: TheDragonCode/codestyler@v3 | ||
with: | ||
github_token: ${{ secrets.COMPOSER_TOKEN }} | ||
fix: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} |
This file was deleted.
Oops, something went wrong.