Merge pull request #5 from creyD/dev
Adjusted Workflows for new branching structure
This commit is contained in:
19
.github/workflows/cc.yml
vendored
Normal file
19
.github/workflows/cc.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: CodeCleanup
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cleanup_tasks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Cloning the repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Prettify the JS Code
|
||||||
|
uses: creyD/prettier_action@master
|
||||||
|
with:
|
||||||
|
branch: ${{ github.head_ref }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
19
.github/workflows/prettier.yml
vendored
19
.github/workflows/prettier.yml
vendored
@@ -1,19 +0,0 @@
|
|||||||
name: Prettier for JS Code
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
cleanup_tasks:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Cloning the repository
|
|
||||||
uses: actions/checkout@master
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- name: Prettify the JS Code
|
|
||||||
uses: creyD/prettier_action@master
|
|
||||||
with:
|
|
||||||
branch: ${{ github.head_ref }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
Reference in New Issue
Block a user