Skip to content

Commit

Permalink
Update and rename lint-fixer.yml to code-style.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Jun 26, 2023
1 parent 9cce096 commit 1cf90df
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/code-style.yml
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' }}
19 changes: 0 additions & 19 deletions .github/workflows/lint-fixer.yml

This file was deleted.

0 comments on commit 1cf90df

Please sign in to comment.